From 16f26f63aa61b4ac4d42a1548a868fc1dd49c0eb Mon Sep 17 00:00:00 2001 From: Alice <65933803+alicejli@users.noreply.github.com> Date: Wed, 24 Aug 2022 16:28:29 -0400 Subject: [PATCH] feat: update autogenerated snippet disclaimer (#1029) * feat: update autogenerated snippet disclaimer * update integration tests --- .../composer/comment/CommentComposer.java | 12 +- .../grpc/goldens/BookshopClient.golden | 49 +- .../goldens/DeprecatedServiceClient.golden | 49 +- .../goldens/DeprecatedServiceSettings.golden | 7 +- .../DeprecatedServiceStubSettings.golden | 7 +- .../composer/grpc/goldens/EchoClient.golden | 231 ++++-- .../composer/grpc/goldens/EchoSettings.golden | 7 +- .../grpc/goldens/EchoStubSettings.golden | 7 +- .../grpc/goldens/IdentityClient.golden | 147 +++- .../LoggingServiceV2StubSettings.golden | 7 +- .../grpc/goldens/MessagingClient.golden | 350 +++++--- .../grpc/goldens/PublisherStubSettings.golden | 7 +- .../bookshopclient/AsyncGetBook.golden | 7 +- .../SyncCreateSetCredentialsProvider.golden | 7 +- .../SyncCreateSetEndpoint.golden | 7 +- .../samples/bookshopclient/SyncGetBook.golden | 7 +- .../SyncGetBookIntListbook.golden | 7 +- .../SyncGetBookStringListbook.golden | 7 +- .../AsyncFastFibonacci.golden | 7 +- .../AsyncSlowFibonacci.golden | 7 +- .../SyncCreateSetCredentialsProvider.golden | 7 +- .../SyncCreateSetEndpoint.golden | 7 +- .../SyncFastFibonacci.golden | 7 +- .../SyncSlowFibonacci.golden | 7 +- .../samples/echoclient/AsyncBlock.golden | 7 +- .../samples/echoclient/AsyncChat.golden | 7 +- .../samples/echoclient/AsyncChatAgain.golden | 7 +- .../samples/echoclient/AsyncCollect.golden | 7 +- .../echoclient/AsyncCollideName.golden | 7 +- .../samples/echoclient/AsyncEcho.golden | 7 +- .../samples/echoclient/AsyncExpand.golden | 7 +- .../echoclient/AsyncPagedExpand.golden | 7 +- .../echoclient/AsyncPagedExpandPaged.golden | 7 +- .../echoclient/AsyncSimplePagedExpand.golden | 7 +- .../AsyncSimplePagedExpandPaged.golden | 7 +- .../samples/echoclient/AsyncWait.golden | 7 +- .../samples/echoclient/AsyncWaitLRO.golden | 7 +- .../samples/echoclient/SyncBlock.golden | 7 +- .../samples/echoclient/SyncCollideName.golden | 7 +- .../SyncCreateSetCredentialsProvider.golden | 7 +- .../echoclient/SyncCreateSetEndpoint.golden | 7 +- .../samples/echoclient/SyncEcho.golden | 7 +- .../echoclient/SyncEchoFoobarname.golden | 7 +- .../samples/echoclient/SyncEchoNoargs.golden | 7 +- .../echoclient/SyncEchoResourcename.golden | 7 +- .../samples/echoclient/SyncEchoStatus.golden | 7 +- .../samples/echoclient/SyncEchoString.golden | 7 +- .../samples/echoclient/SyncEchoString1.golden | 7 +- .../samples/echoclient/SyncEchoString2.golden | 7 +- .../echoclient/SyncEchoStringSeverity.golden | 7 +- .../samples/echoclient/SyncPagedExpand.golden | 7 +- .../echoclient/SyncSimplePagedExpand.golden | 7 +- .../SyncSimplePagedExpandNoargs.golden | 7 +- .../samples/echoclient/SyncWait.golden | 7 +- .../echoclient/SyncWaitDuration.golden | 7 +- .../echoclient/SyncWaitTimestamp.golden | 7 +- .../identityclient/AsyncCreateUser.golden | 7 +- .../identityclient/AsyncDeleteUser.golden | 7 +- .../identityclient/AsyncGetUser.golden | 7 +- .../identityclient/AsyncListUsers.golden | 7 +- .../identityclient/AsyncListUsersPaged.golden | 7 +- .../identityclient/AsyncUpdateUser.golden | 7 +- .../SyncCreateSetCredentialsProvider.golden | 7 +- .../SyncCreateSetEndpoint.golden | 7 +- .../identityclient/SyncCreateUser.golden | 7 +- .../SyncCreateUserStringStringString.golden | 7 +- ...gStringStringIntStringBooleanDouble.golden | 7 +- ...ngStringIntStringStringStringString.golden | 7 +- .../identityclient/SyncDeleteUser.golden | 7 +- .../SyncDeleteUserString.golden | 7 +- .../SyncDeleteUserUsername.golden | 7 +- .../samples/identityclient/SyncGetUser.golden | 7 +- .../identityclient/SyncGetUserString.golden | 7 +- .../identityclient/SyncGetUserUsername.golden | 7 +- .../identityclient/SyncListUsers.golden | 7 +- .../identityclient/SyncUpdateUser.golden | 7 +- .../messagingclient/AsyncConnect.golden | 7 +- .../messagingclient/AsyncCreateBlurb.golden | 7 +- .../messagingclient/AsyncCreateRoom.golden | 7 +- .../messagingclient/AsyncDeleteBlurb.golden | 7 +- .../messagingclient/AsyncDeleteRoom.golden | 7 +- .../messagingclient/AsyncGetBlurb.golden | 7 +- .../messagingclient/AsyncGetRoom.golden | 7 +- .../messagingclient/AsyncListBlurbs.golden | 7 +- .../AsyncListBlurbsPaged.golden | 7 +- .../messagingclient/AsyncListRooms.golden | 7 +- .../AsyncListRoomsPaged.golden | 7 +- .../messagingclient/AsyncSearchBlurbs.golden | 7 +- .../AsyncSearchBlurbsLRO.golden | 7 +- .../messagingclient/AsyncSendBlurbs.golden | 7 +- .../messagingclient/AsyncStreamBlurbs.golden | 7 +- .../messagingclient/AsyncUpdateBlurb.golden | 7 +- .../messagingclient/AsyncUpdateRoom.golden | 7 +- .../messagingclient/SyncCreateBlurb.golden | 7 +- ...yncCreateBlurbProfilenameBytestring.golden | 7 +- .../SyncCreateBlurbProfilenameString.golden | 7 +- .../SyncCreateBlurbRoomnameBytestring.golden | 7 +- .../SyncCreateBlurbRoomnameString.golden | 7 +- .../SyncCreateBlurbStringBytestring.golden | 7 +- .../SyncCreateBlurbStringString.golden | 7 +- .../messagingclient/SyncCreateRoom.golden | 7 +- .../SyncCreateRoomStringString.golden | 7 +- .../SyncCreateSetCredentialsProvider.golden | 7 +- .../SyncCreateSetEndpoint.golden | 7 +- .../messagingclient/SyncDeleteBlurb.golden | 7 +- .../SyncDeleteBlurbBlurbname.golden | 7 +- .../SyncDeleteBlurbString.golden | 7 +- .../messagingclient/SyncDeleteRoom.golden | 7 +- .../SyncDeleteRoomRoomname.golden | 7 +- .../SyncDeleteRoomString.golden | 7 +- .../messagingclient/SyncGetBlurb.golden | 7 +- .../SyncGetBlurbBlurbname.golden | 7 +- .../messagingclient/SyncGetBlurbString.golden | 7 +- .../messagingclient/SyncGetRoom.golden | 7 +- .../SyncGetRoomRoomname.golden | 7 +- .../messagingclient/SyncGetRoomString.golden | 7 +- .../messagingclient/SyncListBlurbs.golden | 7 +- .../SyncListBlurbsProfilename.golden | 7 +- .../SyncListBlurbsRoomname.golden | 7 +- .../SyncListBlurbsString.golden | 7 +- .../messagingclient/SyncListRooms.golden | 7 +- .../messagingclient/SyncSearchBlurbs.golden | 7 +- .../SyncSearchBlurbsString.golden | 7 +- .../messagingclient/SyncUpdateBlurb.golden | 7 +- .../messagingclient/SyncUpdateRoom.golden | 7 +- .../samples/servicesettings/SyncEcho.golden | 7 +- .../servicesettings/SyncFastFibonacci.golden | 7 +- .../stub/SyncCreateTopic.golden | 7 +- .../servicesettings/stub/SyncDeleteLog.golden | 7 +- .../servicesettings/stub/SyncEcho.golden | 7 +- .../stub/SyncFastFibonacci.golden | 7 +- .../grpcrest/goldens/EchoClient.golden | 252 ++++-- .../grpcrest/goldens/EchoEmpty.golden | 28 +- .../grpcrest/goldens/EchoSettings.golden | 7 +- .../grpcrest/goldens/EchoStubSettings.golden | 7 +- .../rest/goldens/ComplianceSettings.golden | 7 +- .../goldens/ComplianceStubSettings.golden | 7 +- .../samplecode/SampleCodeWriterTest.java | 14 +- .../samplecode/SampleComposerTest.java | 35 +- .../AsyncAnalyzeIamPolicy.java | 7 +- .../SyncAnalyzeIamPolicy.java | 7 +- .../AsyncAnalyzeIamPolicyLongrunning.java | 7 +- .../AsyncAnalyzeIamPolicyLongrunningLRO.java | 7 +- .../SyncAnalyzeIamPolicyLongrunning.java | 7 +- .../analyzemove/AsyncAnalyzeMove.java | 7 +- .../analyzemove/SyncAnalyzeMove.java | 7 +- .../AsyncBatchGetAssetsHistory.java | 7 +- .../SyncBatchGetAssetsHistory.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createfeed/AsyncCreateFeed.java | 7 +- .../createfeed/SyncCreateFeed.java | 7 +- .../createfeed/SyncCreateFeedString.java | 7 +- .../deletefeed/AsyncDeleteFeed.java | 7 +- .../deletefeed/SyncDeleteFeed.java | 7 +- .../deletefeed/SyncDeleteFeedFeedname.java | 7 +- .../deletefeed/SyncDeleteFeedString.java | 7 +- .../exportassets/AsyncExportAssets.java | 7 +- .../exportassets/AsyncExportAssetsLRO.java | 7 +- .../exportassets/SyncExportAssets.java | 7 +- .../getfeed/AsyncGetFeed.java | 7 +- .../getfeed/SyncGetFeed.java | 7 +- .../getfeed/SyncGetFeedFeedname.java | 7 +- .../getfeed/SyncGetFeedString.java | 7 +- .../listassets/AsyncListAssets.java | 7 +- .../listassets/AsyncListAssetsPaged.java | 7 +- .../listassets/SyncListAssets.java | 7 +- .../SyncListAssetsResourcename.java | 7 +- .../listassets/SyncListAssetsString.java | 7 +- .../listfeeds/AsyncListFeeds.java | 7 +- .../listfeeds/SyncListFeeds.java | 7 +- .../listfeeds/SyncListFeedsString.java | 7 +- .../AsyncSearchAllIamPolicies.java | 7 +- .../AsyncSearchAllIamPoliciesPaged.java | 7 +- .../SyncSearchAllIamPolicies.java | 7 +- .../SyncSearchAllIamPoliciesStringString.java | 7 +- .../AsyncSearchAllResources.java | 7 +- .../AsyncSearchAllResourcesPaged.java | 7 +- .../SyncSearchAllResources.java | 7 +- ...rchAllResourcesStringStringListstring.java | 7 +- .../updatefeed/AsyncUpdateFeed.java | 7 +- .../updatefeed/SyncUpdateFeed.java | 7 +- .../updatefeed/SyncUpdateFeedFeed.java | 7 +- .../SyncBatchGetAssetsHistory.java | 7 +- .../SyncBatchGetAssetsHistory.java | 7 +- .../cloud/asset/v1/AssetServiceClient.java | 315 +++++--- .../cloud/asset/v1/AssetServiceSettings.java | 7 +- .../google/cloud/asset/v1/package-info.java | 7 +- .../v1/stub/AssetServiceStubSettings.java | 7 +- .../AsyncCheckAndMutateRow.java | 7 +- .../SyncCheckAndMutateRow.java | 7 +- ...ringRowfilterListmutationListmutation.java | 7 +- ...wfilterListmutationListmutationString.java | 7 +- ...ringRowfilterListmutationListmutation.java | 7 +- ...wfilterListmutationListmutationString.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../mutaterow/AsyncMutateRow.java | 7 +- .../mutaterow/SyncMutateRow.java | 7 +- ...MutateRowStringBytestringListmutation.java | 7 +- ...RowStringBytestringListmutationString.java | 7 +- ...ateRowTablenameBytestringListmutation.java | 7 +- ...TablenameBytestringListmutationString.java | 7 +- .../mutaterows/AsyncMutateRows.java | 7 +- .../AsyncReadModifyWriteRow.java | 7 +- .../SyncReadModifyWriteRow.java | 7 +- ...ringBytestringListreadmodifywriterule.java | 7 +- ...testringListreadmodifywriteruleString.java | 7 +- ...nameBytestringListreadmodifywriterule.java | 7 +- ...testringListreadmodifywriteruleString.java | 7 +- .../readrows/AsyncReadRows.java | 7 +- .../samplerowkeys/AsyncSampleRowKeys.java | 7 +- .../mutaterow/SyncMutateRow.java | 7 +- .../mutaterow/SyncMutateRow.java | 7 +- .../data/v2/BaseBigtableDataClient.java | 168 ++-- .../data/v2/BaseBigtableDataSettings.java | 7 +- .../cloud/bigtable/data/v2/package-info.java | 7 +- .../data/v2/stub/BigtableStubSettings.java | 7 +- .../aggregatedlist/AsyncAggregatedList.java | 7 +- .../AsyncAggregatedListPaged.java | 7 +- .../aggregatedlist/SyncAggregatedList.java | 7 +- .../SyncAggregatedListString.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../addressesclient/delete/AsyncDelete.java | 7 +- .../delete/AsyncDeleteLRO.java | 7 +- .../addressesclient/delete/SyncDelete.java | 7 +- .../delete/SyncDeleteStringStringString.java | 7 +- .../addressesclient/insert/AsyncInsert.java | 7 +- .../insert/AsyncInsertLRO.java | 7 +- .../addressesclient/insert/SyncInsert.java | 7 +- .../insert/SyncInsertStringStringAddress.java | 7 +- .../addressesclient/list/AsyncList.java | 7 +- .../addressesclient/list/AsyncListPaged.java | 7 +- .../addressesclient/list/SyncList.java | 7 +- .../list/SyncListStringStringString.java | 7 +- .../aggregatedlist/SyncAggregatedList.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../regionoperationsclient/get/AsyncGet.java | 7 +- .../regionoperationsclient/get/SyncGet.java | 7 +- .../get/SyncGetStringStringString.java | 7 +- .../wait/AsyncWait.java | 7 +- .../regionoperationsclient/wait/SyncWait.java | 7 +- .../wait/SyncWaitStringStringString.java | 7 +- .../regionoperationssettings/get/SyncGet.java | 7 +- .../aggregatedlist/SyncAggregatedList.java | 7 +- .../get/SyncGet.java | 7 +- .../compute/v1small/AddressesClient.java | 133 +++- .../compute/v1small/AddressesSettings.java | 7 +- .../v1small/RegionOperationsClient.java | 63 +- .../v1small/RegionOperationsSettings.java | 7 +- .../cloud/compute/v1small/package-info.java | 14 +- .../v1small/stub/AddressesStubSettings.java | 7 +- .../stub/RegionOperationsStubSettings.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncGenerateAccessToken.java | 7 +- .../SyncGenerateAccessToken.java | 7 +- ...countnameListstringListstringDuration.java | 7 +- ...kenStringListstringListstringDuration.java | 7 +- .../generateidtoken/AsyncGenerateIdToken.java | 7 +- .../generateidtoken/SyncGenerateIdToken.java | 7 +- ...iceaccountnameListstringStringBoolean.java | 7 +- ...eIdTokenStringListstringStringBoolean.java | 7 +- .../signblob/AsyncSignBlob.java | 7 +- .../signblob/SyncSignBlob.java | 7 +- ...erviceaccountnameListstringBytestring.java | 7 +- ...yncSignBlobStringListstringBytestring.java | 7 +- .../signjwt/AsyncSignJwt.java | 7 +- .../signjwt/SyncSignJwt.java | 7 +- ...JwtServiceaccountnameListstringString.java | 7 +- .../SyncSignJwtStringListstringString.java | 7 +- .../SyncGenerateAccessToken.java | 7 +- .../SyncGenerateAccessToken.java | 7 +- .../credentials/v1/IamCredentialsClient.java | 133 +++- .../v1/IamCredentialsSettings.java | 7 +- .../iam/credentials/v1/package-info.java | 7 +- .../v1/stub/IamCredentialsStubSettings.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../com/google/iam/v1/IAMPolicyClient.java | 63 +- .../com/google/iam/v1/IAMPolicySettings.java | 7 +- .../src/com/google/iam/v1/package-info.java | 7 +- .../iam/v1/stub/IAMPolicyStubSettings.java | 7 +- .../AsyncAsymmetricDecrypt.java | 7 +- .../SyncAsymmetricDecrypt.java | 7 +- ...DecryptCryptokeyversionnameBytestring.java | 7 +- ...SyncAsymmetricDecryptStringBytestring.java | 7 +- .../asymmetricsign/AsyncAsymmetricSign.java | 7 +- .../asymmetricsign/SyncAsymmetricSign.java | 7 +- ...mmetricSignCryptokeyversionnameDigest.java | 7 +- .../SyncAsymmetricSignStringDigest.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createcryptokey/AsyncCreateCryptoKey.java | 7 +- .../createcryptokey/SyncCreateCryptoKey.java | 7 +- ...teCryptoKeyKeyringnameStringCryptokey.java | 7 +- ...cCreateCryptoKeyStringStringCryptokey.java | 7 +- .../AsyncCreateCryptoKeyVersion.java | 7 +- .../SyncCreateCryptoKeyVersion.java | 7 +- ...yVersionCryptokeynameCryptokeyversion.java | 7 +- ...ryptoKeyVersionStringCryptokeyversion.java | 7 +- .../createimportjob/AsyncCreateImportJob.java | 7 +- .../createimportjob/SyncCreateImportJob.java | 7 +- ...teImportJobKeyringnameStringImportjob.java | 7 +- ...cCreateImportJobStringStringImportjob.java | 7 +- .../createkeyring/AsyncCreateKeyRing.java | 7 +- .../createkeyring/SyncCreateKeyRing.java | 7 +- ...reateKeyRingLocationnameStringKeyring.java | 7 +- .../SyncCreateKeyRingStringStringKeyring.java | 7 +- .../decrypt/AsyncDecrypt.java | 7 +- .../decrypt/SyncDecrypt.java | 7 +- .../SyncDecryptCryptokeynameBytestring.java | 7 +- .../decrypt/SyncDecryptStringBytestring.java | 7 +- .../AsyncDestroyCryptoKeyVersion.java | 7 +- .../SyncDestroyCryptoKeyVersion.java | 7 +- ...yCryptoKeyVersionCryptokeyversionname.java | 7 +- .../SyncDestroyCryptoKeyVersionString.java | 7 +- .../encrypt/AsyncEncrypt.java | 7 +- .../encrypt/SyncEncrypt.java | 7 +- .../SyncEncryptResourcenameBytestring.java | 7 +- .../encrypt/SyncEncryptStringBytestring.java | 7 +- .../getcryptokey/AsyncGetCryptoKey.java | 7 +- .../getcryptokey/SyncGetCryptoKey.java | 7 +- .../SyncGetCryptoKeyCryptokeyname.java | 7 +- .../getcryptokey/SyncGetCryptoKeyString.java | 7 +- .../AsyncGetCryptoKeyVersion.java | 7 +- .../SyncGetCryptoKeyVersion.java | 7 +- ...tCryptoKeyVersionCryptokeyversionname.java | 7 +- .../SyncGetCryptoKeyVersionString.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../getimportjob/AsyncGetImportJob.java | 7 +- .../getimportjob/SyncGetImportJob.java | 7 +- .../SyncGetImportJobImportjobname.java | 7 +- .../getimportjob/SyncGetImportJobString.java | 7 +- .../getkeyring/AsyncGetKeyRing.java | 7 +- .../getkeyring/SyncGetKeyRing.java | 7 +- .../getkeyring/SyncGetKeyRingKeyringname.java | 7 +- .../getkeyring/SyncGetKeyRingString.java | 7 +- .../getlocation/AsyncGetLocation.java | 7 +- .../getlocation/SyncGetLocation.java | 7 +- .../getpublickey/AsyncGetPublicKey.java | 7 +- .../getpublickey/SyncGetPublicKey.java | 7 +- .../SyncGetPublicKeyCryptokeyversionname.java | 7 +- .../getpublickey/SyncGetPublicKeyString.java | 7 +- .../AsyncImportCryptoKeyVersion.java | 7 +- .../SyncImportCryptoKeyVersion.java | 7 +- .../listcryptokeys/AsyncListCryptoKeys.java | 7 +- .../AsyncListCryptoKeysPaged.java | 7 +- .../listcryptokeys/SyncListCryptoKeys.java | 7 +- .../SyncListCryptoKeysKeyringname.java | 7 +- .../SyncListCryptoKeysString.java | 7 +- .../AsyncListCryptoKeyVersions.java | 7 +- .../AsyncListCryptoKeyVersionsPaged.java | 7 +- .../SyncListCryptoKeyVersions.java | 7 +- ...yncListCryptoKeyVersionsCryptokeyname.java | 7 +- .../SyncListCryptoKeyVersionsString.java | 7 +- .../listimportjobs/AsyncListImportJobs.java | 7 +- .../AsyncListImportJobsPaged.java | 7 +- .../listimportjobs/SyncListImportJobs.java | 7 +- .../SyncListImportJobsKeyringname.java | 7 +- .../SyncListImportJobsString.java | 7 +- .../listkeyrings/AsyncListKeyRings.java | 7 +- .../listkeyrings/AsyncListKeyRingsPaged.java | 7 +- .../listkeyrings/SyncListKeyRings.java | 7 +- .../SyncListKeyRingsLocationname.java | 7 +- .../listkeyrings/SyncListKeyRingsString.java | 7 +- .../listlocations/AsyncListLocations.java | 7 +- .../AsyncListLocationsPaged.java | 7 +- .../listlocations/SyncListLocations.java | 7 +- .../AsyncRestoreCryptoKeyVersion.java | 7 +- .../SyncRestoreCryptoKeyVersion.java | 7 +- ...eCryptoKeyVersionCryptokeyversionname.java | 7 +- .../SyncRestoreCryptoKeyVersionString.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- .../updatecryptokey/AsyncUpdateCryptoKey.java | 7 +- .../updatecryptokey/SyncUpdateCryptoKey.java | 7 +- ...SyncUpdateCryptoKeyCryptokeyFieldmask.java | 7 +- .../AsyncUpdateCryptoKeyPrimaryVersion.java | 7 +- .../SyncUpdateCryptoKeyPrimaryVersion.java | 7 +- ...oKeyPrimaryVersionCryptokeynameString.java | 7 +- ...teCryptoKeyPrimaryVersionStringString.java | 7 +- .../AsyncUpdateCryptoKeyVersion.java | 7 +- .../SyncUpdateCryptoKeyVersion.java | 7 +- ...toKeyVersionCryptokeyversionFieldmask.java | 7 +- .../getkeyring/SyncGetKeyRing.java | 7 +- .../getkeyring/SyncGetKeyRing.java | 7 +- .../kms/v1/KeyManagementServiceClient.java | 728 ++++++++++++----- .../kms/v1/KeyManagementServiceSettings.java | 7 +- .../com/google/cloud/kms/v1/package-info.java | 7 +- .../KeyManagementServiceStubSettings.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createbook/AsyncCreateBook.java | 7 +- .../createbook/SyncCreateBook.java | 7 +- .../SyncCreateBookShelfnameBook.java | 7 +- .../createbook/SyncCreateBookStringBook.java | 7 +- .../createshelf/AsyncCreateShelf.java | 7 +- .../createshelf/SyncCreateShelf.java | 7 +- .../createshelf/SyncCreateShelfShelf.java | 7 +- .../deletebook/AsyncDeleteBook.java | 7 +- .../deletebook/SyncDeleteBook.java | 7 +- .../deletebook/SyncDeleteBookBookname.java | 7 +- .../deletebook/SyncDeleteBookString.java | 7 +- .../deleteshelf/AsyncDeleteShelf.java | 7 +- .../deleteshelf/SyncDeleteShelf.java | 7 +- .../deleteshelf/SyncDeleteShelfShelfname.java | 7 +- .../deleteshelf/SyncDeleteShelfString.java | 7 +- .../getbook/AsyncGetBook.java | 7 +- .../getbook/SyncGetBook.java | 7 +- .../getbook/SyncGetBookBookname.java | 7 +- .../getbook/SyncGetBookString.java | 7 +- .../getshelf/AsyncGetShelf.java | 7 +- .../getshelf/SyncGetShelf.java | 7 +- .../getshelf/SyncGetShelfShelfname.java | 7 +- .../getshelf/SyncGetShelfString.java | 7 +- .../listbooks/AsyncListBooks.java | 7 +- .../listbooks/AsyncListBooksPaged.java | 7 +- .../listbooks/SyncListBooks.java | 7 +- .../listbooks/SyncListBooksShelfname.java | 7 +- .../listbooks/SyncListBooksString.java | 7 +- .../listshelves/AsyncListShelves.java | 7 +- .../listshelves/AsyncListShelvesPaged.java | 7 +- .../listshelves/SyncListShelves.java | 7 +- .../mergeshelves/AsyncMergeShelves.java | 7 +- .../mergeshelves/SyncMergeShelves.java | 7 +- .../SyncMergeShelvesShelfnameShelfname.java | 7 +- .../SyncMergeShelvesShelfnameString.java | 7 +- .../SyncMergeShelvesStringShelfname.java | 7 +- .../SyncMergeShelvesStringString.java | 7 +- .../movebook/AsyncMoveBook.java | 7 +- .../movebook/SyncMoveBook.java | 7 +- .../SyncMoveBookBooknameShelfname.java | 7 +- .../movebook/SyncMoveBookBooknameString.java | 7 +- .../movebook/SyncMoveBookStringShelfname.java | 7 +- .../movebook/SyncMoveBookStringString.java | 7 +- .../updatebook/AsyncUpdateBook.java | 7 +- .../updatebook/SyncUpdateBook.java | 7 +- .../SyncUpdateBookBookFieldmask.java | 7 +- .../createshelf/SyncCreateShelf.java | 7 +- .../createshelf/SyncCreateShelf.java | 7 +- .../library/v1/LibraryServiceClient.java | 343 +++++--- .../library/v1/LibraryServiceSettings.java | 7 +- .../example/library/v1/package-info.java | 7 +- .../v1/stub/LibraryServiceStubSettings.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createbucket/AsyncCreateBucket.java | 7 +- .../createbucket/SyncCreateBucket.java | 7 +- .../createexclusion/AsyncCreateExclusion.java | 7 +- .../createexclusion/SyncCreateExclusion.java | 7 +- ...clusionBillingaccountnameLogexclusion.java | 7 +- ...CreateExclusionFoldernameLogexclusion.java | 7 +- ...ExclusionOrganizationnameLogexclusion.java | 7 +- ...reateExclusionProjectnameLogexclusion.java | 7 +- ...SyncCreateExclusionStringLogexclusion.java | 7 +- .../createsink/AsyncCreateSink.java | 7 +- .../createsink/SyncCreateSink.java | 7 +- ...ncCreateSinkBillingaccountnameLogsink.java | 7 +- .../SyncCreateSinkFoldernameLogsink.java | 7 +- ...SyncCreateSinkOrganizationnameLogsink.java | 7 +- .../SyncCreateSinkProjectnameLogsink.java | 7 +- .../SyncCreateSinkStringLogsink.java | 7 +- .../createview/AsyncCreateView.java | 7 +- .../createview/SyncCreateView.java | 7 +- .../deletebucket/AsyncDeleteBucket.java | 7 +- .../deletebucket/SyncDeleteBucket.java | 7 +- .../deleteexclusion/AsyncDeleteExclusion.java | 7 +- .../deleteexclusion/SyncDeleteExclusion.java | 7 +- .../SyncDeleteExclusionLogexclusionname.java | 7 +- .../SyncDeleteExclusionString.java | 7 +- .../deletesink/AsyncDeleteSink.java | 7 +- .../deletesink/SyncDeleteSink.java | 7 +- .../deletesink/SyncDeleteSinkLogsinkname.java | 7 +- .../deletesink/SyncDeleteSinkString.java | 7 +- .../deleteview/AsyncDeleteView.java | 7 +- .../deleteview/SyncDeleteView.java | 7 +- .../getbucket/AsyncGetBucket.java | 7 +- .../configclient/getbucket/SyncGetBucket.java | 7 +- .../getcmeksettings/AsyncGetCmekSettings.java | 7 +- .../getcmeksettings/SyncGetCmekSettings.java | 7 +- .../getexclusion/AsyncGetExclusion.java | 7 +- .../getexclusion/SyncGetExclusion.java | 7 +- .../SyncGetExclusionLogexclusionname.java | 7 +- .../getexclusion/SyncGetExclusionString.java | 7 +- .../v2/configclient/getsink/AsyncGetSink.java | 7 +- .../v2/configclient/getsink/SyncGetSink.java | 7 +- .../getsink/SyncGetSinkLogsinkname.java | 7 +- .../getsink/SyncGetSinkString.java | 7 +- .../v2/configclient/getview/AsyncGetView.java | 7 +- .../v2/configclient/getview/SyncGetView.java | 7 +- .../listbuckets/AsyncListBuckets.java | 7 +- .../listbuckets/AsyncListBucketsPaged.java | 7 +- .../listbuckets/SyncListBuckets.java | 7 +- ...ListBucketsBillingaccountlocationname.java | 7 +- .../SyncListBucketsFolderlocationname.java | 7 +- .../SyncListBucketsLocationname.java | 7 +- ...ncListBucketsOrganizationlocationname.java | 7 +- .../listbuckets/SyncListBucketsString.java | 7 +- .../listexclusions/AsyncListExclusions.java | 7 +- .../AsyncListExclusionsPaged.java | 7 +- .../listexclusions/SyncListExclusions.java | 7 +- .../SyncListExclusionsBillingaccountname.java | 7 +- .../SyncListExclusionsFoldername.java | 7 +- .../SyncListExclusionsOrganizationname.java | 7 +- .../SyncListExclusionsProjectname.java | 7 +- .../SyncListExclusionsString.java | 7 +- .../listsinks/AsyncListSinks.java | 7 +- .../listsinks/AsyncListSinksPaged.java | 7 +- .../configclient/listsinks/SyncListSinks.java | 7 +- .../SyncListSinksBillingaccountname.java | 7 +- .../listsinks/SyncListSinksFoldername.java | 7 +- .../SyncListSinksOrganizationname.java | 7 +- .../listsinks/SyncListSinksProjectname.java | 7 +- .../listsinks/SyncListSinksString.java | 7 +- .../listviews/AsyncListViews.java | 7 +- .../listviews/AsyncListViewsPaged.java | 7 +- .../configclient/listviews/SyncListViews.java | 7 +- .../listviews/SyncListViewsString.java | 7 +- .../undeletebucket/AsyncUndeleteBucket.java | 7 +- .../undeletebucket/SyncUndeleteBucket.java | 7 +- .../updatebucket/AsyncUpdateBucket.java | 7 +- .../updatebucket/SyncUpdateBucket.java | 7 +- .../AsyncUpdateCmekSettings.java | 7 +- .../SyncUpdateCmekSettings.java | 7 +- .../updateexclusion/AsyncUpdateExclusion.java | 7 +- .../updateexclusion/SyncUpdateExclusion.java | 7 +- ...LogexclusionnameLogexclusionFieldmask.java | 7 +- ...eExclusionStringLogexclusionFieldmask.java | 7 +- .../updatesink/AsyncUpdateSink.java | 7 +- .../updatesink/SyncUpdateSink.java | 7 +- .../SyncUpdateSinkLogsinknameLogsink.java | 7 +- ...UpdateSinkLogsinknameLogsinkFieldmask.java | 7 +- .../SyncUpdateSinkStringLogsink.java | 7 +- .../SyncUpdateSinkStringLogsinkFieldmask.java | 7 +- .../updateview/AsyncUpdateView.java | 7 +- .../updateview/SyncUpdateView.java | 7 +- .../getbucket/SyncGetBucket.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../deletelog/AsyncDeleteLog.java | 7 +- .../deletelog/SyncDeleteLog.java | 7 +- .../deletelog/SyncDeleteLogLogname.java | 7 +- .../deletelog/SyncDeleteLogString.java | 7 +- .../listlogentries/AsyncListLogEntries.java | 7 +- .../AsyncListLogEntriesPaged.java | 7 +- .../listlogentries/SyncListLogEntries.java | 7 +- ...cListLogEntriesListstringStringString.java | 7 +- .../loggingclient/listlogs/AsyncListLogs.java | 7 +- .../listlogs/AsyncListLogsPaged.java | 7 +- .../loggingclient/listlogs/SyncListLogs.java | 7 +- .../SyncListLogsBillingaccountname.java | 7 +- .../listlogs/SyncListLogsFoldername.java | 7 +- .../SyncListLogsOrganizationname.java | 7 +- .../listlogs/SyncListLogsProjectname.java | 7 +- .../listlogs/SyncListLogsString.java | 7 +- ...AsyncListMonitoredResourceDescriptors.java | 7 +- ...ListMonitoredResourceDescriptorsPaged.java | 7 +- .../SyncListMonitoredResourceDescriptors.java | 7 +- .../taillogentries/AsyncTailLogEntries.java | 7 +- .../writelogentries/AsyncWriteLogEntries.java | 7 +- .../writelogentries/SyncWriteLogEntries.java | 7 +- ...edresourceMapstringstringListlogentry.java | 7 +- ...edresourceMapstringstringListlogentry.java | 7 +- .../deletelog/SyncDeleteLog.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createlogmetric/AsyncCreateLogMetric.java | 7 +- .../createlogmetric/SyncCreateLogMetric.java | 7 +- ...ncCreateLogMetricProjectnameLogmetric.java | 7 +- .../SyncCreateLogMetricStringLogmetric.java | 7 +- .../deletelogmetric/AsyncDeleteLogMetric.java | 7 +- .../deletelogmetric/SyncDeleteLogMetric.java | 7 +- .../SyncDeleteLogMetricLogmetricname.java | 7 +- .../SyncDeleteLogMetricString.java | 7 +- .../getlogmetric/AsyncGetLogMetric.java | 7 +- .../getlogmetric/SyncGetLogMetric.java | 7 +- .../SyncGetLogMetricLogmetricname.java | 7 +- .../getlogmetric/SyncGetLogMetricString.java | 7 +- .../listlogmetrics/AsyncListLogMetrics.java | 7 +- .../AsyncListLogMetricsPaged.java | 7 +- .../listlogmetrics/SyncListLogMetrics.java | 7 +- .../SyncListLogMetricsProjectname.java | 7 +- .../SyncListLogMetricsString.java | 7 +- .../updatelogmetric/AsyncUpdateLogMetric.java | 7 +- .../updatelogmetric/SyncUpdateLogMetric.java | 7 +- ...UpdateLogMetricLogmetricnameLogmetric.java | 7 +- .../SyncUpdateLogMetricStringLogmetric.java | 7 +- .../getlogmetric/SyncGetLogMetric.java | 7 +- .../getbucket/SyncGetBucket.java | 7 +- .../deletelog/SyncDeleteLog.java | 7 +- .../getlogmetric/SyncGetLogMetric.java | 7 +- .../google/cloud/logging/v2/ConfigClient.java | 651 ++++++++++----- .../cloud/logging/v2/ConfigSettings.java | 7 +- .../cloud/logging/v2/LoggingClient.java | 189 +++-- .../cloud/logging/v2/LoggingSettings.java | 7 +- .../cloud/logging/v2/MetricsClient.java | 168 ++-- .../cloud/logging/v2/MetricsSettings.java | 7 +- .../google/cloud/logging/v2/package-info.java | 21 +- .../v2/stub/ConfigServiceV2StubSettings.java | 7 +- .../v2/stub/LoggingServiceV2StubSettings.java | 7 +- .../v2/stub/MetricsServiceV2StubSettings.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createschema/AsyncCreateSchema.java | 7 +- .../createschema/SyncCreateSchema.java | 7 +- ...ncCreateSchemaProjectnameSchemaString.java | 7 +- .../SyncCreateSchemaStringSchemaString.java | 7 +- .../deleteschema/AsyncDeleteSchema.java | 7 +- .../deleteschema/SyncDeleteSchema.java | 7 +- .../SyncDeleteSchemaSchemaname.java | 7 +- .../deleteschema/SyncDeleteSchemaString.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../getschema/AsyncGetSchema.java | 7 +- .../getschema/SyncGetSchema.java | 7 +- .../getschema/SyncGetSchemaSchemaname.java | 7 +- .../getschema/SyncGetSchemaString.java | 7 +- .../listschemas/AsyncListSchemas.java | 7 +- .../listschemas/AsyncListSchemasPaged.java | 7 +- .../listschemas/SyncListSchemas.java | 7 +- .../SyncListSchemasProjectname.java | 7 +- .../listschemas/SyncListSchemasString.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- .../validatemessage/AsyncValidateMessage.java | 7 +- .../validatemessage/SyncValidateMessage.java | 7 +- .../validateschema/AsyncValidateSchema.java | 7 +- .../validateschema/SyncValidateSchema.java | 7 +- .../SyncValidateSchemaProjectnameSchema.java | 7 +- .../SyncValidateSchemaStringSchema.java | 7 +- .../createschema/SyncCreateSchema.java | 7 +- .../createtopic/SyncCreateTopic.java | 7 +- .../createschema/SyncCreateSchema.java | 7 +- .../SyncCreateSubscription.java | 7 +- .../acknowledge/AsyncAcknowledge.java | 7 +- .../acknowledge/SyncAcknowledge.java | 7 +- .../SyncAcknowledgeStringListstring.java | 7 +- ...AcknowledgeSubscriptionnameListstring.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createsnapshot/AsyncCreateSnapshot.java | 7 +- .../createsnapshot/SyncCreateSnapshot.java | 7 +- .../SyncCreateSnapshotSnapshotnameString.java | 7 +- ...eSnapshotSnapshotnameSubscriptionname.java | 7 +- .../SyncCreateSnapshotStringString.java | 7 +- ...cCreateSnapshotStringSubscriptionname.java | 7 +- .../AsyncCreateSubscription.java | 7 +- .../SyncCreateSubscription.java | 7 +- ...SubscriptionStringStringPushconfigInt.java | 7 +- ...scriptionStringTopicnamePushconfigInt.java | 7 +- ...onSubscriptionnameStringPushconfigInt.java | 7 +- ...ubscriptionnameTopicnamePushconfigInt.java | 7 +- .../deletesnapshot/AsyncDeleteSnapshot.java | 7 +- .../deletesnapshot/SyncDeleteSnapshot.java | 7 +- .../SyncDeleteSnapshotSnapshotname.java | 7 +- .../SyncDeleteSnapshotString.java | 7 +- .../AsyncDeleteSubscription.java | 7 +- .../SyncDeleteSubscription.java | 7 +- .../SyncDeleteSubscriptionString.java | 7 +- ...yncDeleteSubscriptionSubscriptionname.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../getsnapshot/AsyncGetSnapshot.java | 7 +- .../getsnapshot/SyncGetSnapshot.java | 7 +- .../SyncGetSnapshotSnapshotname.java | 7 +- .../getsnapshot/SyncGetSnapshotString.java | 7 +- .../getsubscription/AsyncGetSubscription.java | 7 +- .../getsubscription/SyncGetSubscription.java | 7 +- .../SyncGetSubscriptionString.java | 7 +- .../SyncGetSubscriptionSubscriptionname.java | 7 +- .../listsnapshots/AsyncListSnapshots.java | 7 +- .../AsyncListSnapshotsPaged.java | 7 +- .../listsnapshots/SyncListSnapshots.java | 7 +- .../SyncListSnapshotsProjectname.java | 7 +- .../SyncListSnapshotsString.java | 7 +- .../AsyncListSubscriptions.java | 7 +- .../AsyncListSubscriptionsPaged.java | 7 +- .../SyncListSubscriptions.java | 7 +- .../SyncListSubscriptionsProjectname.java | 7 +- .../SyncListSubscriptionsString.java | 7 +- .../AsyncModifyAckDeadline.java | 7 +- .../SyncModifyAckDeadline.java | 7 +- ...cModifyAckDeadlineStringListstringInt.java | 7 +- ...DeadlineSubscriptionnameListstringInt.java | 7 +- .../AsyncModifyPushConfig.java | 7 +- .../SyncModifyPushConfig.java | 7 +- .../SyncModifyPushConfigStringPushconfig.java | 7 +- ...yPushConfigSubscriptionnamePushconfig.java | 7 +- .../pull/AsyncPull.java | 7 +- .../pull/SyncPull.java | 7 +- .../pull/SyncPullStringBooleanInt.java | 7 +- .../pull/SyncPullStringInt.java | 7 +- .../SyncPullSubscriptionnameBooleanInt.java | 7 +- .../pull/SyncPullSubscriptionnameInt.java | 7 +- .../seek/AsyncSeek.java | 7 +- .../seek/SyncSeek.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../streamingpull/AsyncStreamingPull.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- .../updatesnapshot/AsyncUpdateSnapshot.java | 7 +- .../updatesnapshot/SyncUpdateSnapshot.java | 7 +- .../AsyncUpdateSubscription.java | 7 +- .../SyncUpdateSubscription.java | 7 +- .../SyncCreateSubscription.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createtopic/AsyncCreateTopic.java | 7 +- .../createtopic/SyncCreateTopic.java | 7 +- .../createtopic/SyncCreateTopicString.java | 7 +- .../createtopic/SyncCreateTopicTopicname.java | 7 +- .../deletetopic/AsyncDeleteTopic.java | 7 +- .../deletetopic/SyncDeleteTopic.java | 7 +- .../deletetopic/SyncDeleteTopicString.java | 7 +- .../deletetopic/SyncDeleteTopicTopicname.java | 7 +- .../AsyncDetachSubscription.java | 7 +- .../SyncDetachSubscription.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../gettopic/AsyncGetTopic.java | 7 +- .../gettopic/SyncGetTopic.java | 7 +- .../gettopic/SyncGetTopicString.java | 7 +- .../gettopic/SyncGetTopicTopicname.java | 7 +- .../listtopics/AsyncListTopics.java | 7 +- .../listtopics/AsyncListTopicsPaged.java | 7 +- .../listtopics/SyncListTopics.java | 7 +- .../listtopics/SyncListTopicsProjectname.java | 7 +- .../listtopics/SyncListTopicsString.java | 7 +- .../AsyncListTopicSnapshots.java | 7 +- .../AsyncListTopicSnapshotsPaged.java | 7 +- .../SyncListTopicSnapshots.java | 7 +- .../SyncListTopicSnapshotsString.java | 7 +- .../SyncListTopicSnapshotsTopicname.java | 7 +- .../AsyncListTopicSubscriptions.java | 7 +- .../AsyncListTopicSubscriptionsPaged.java | 7 +- .../SyncListTopicSubscriptions.java | 7 +- .../SyncListTopicSubscriptionsString.java | 7 +- .../SyncListTopicSubscriptionsTopicname.java | 7 +- .../publish/AsyncPublish.java | 7 +- .../topicadminclient/publish/SyncPublish.java | 7 +- .../SyncPublishStringListpubsubmessage.java | 7 +- ...SyncPublishTopicnameListpubsubmessage.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- .../updatetopic/AsyncUpdateTopic.java | 7 +- .../updatetopic/SyncUpdateTopic.java | 7 +- .../createtopic/SyncCreateTopic.java | 7 +- .../cloud/pubsub/v1/SchemaServiceClient.java | 224 ++++-- .../pubsub/v1/SchemaServiceSettings.java | 7 +- .../pubsub/v1/SubscriptionAdminClient.java | 504 ++++++++---- .../pubsub/v1/SubscriptionAdminSettings.java | 7 +- .../cloud/pubsub/v1/TopicAdminClient.java | 308 +++++-- .../cloud/pubsub/v1/TopicAdminSettings.java | 7 +- .../google/cloud/pubsub/v1/package-info.java | 21 +- .../pubsub/v1/stub/PublisherStubSettings.java | 7 +- .../v1/stub/SchemaServiceStubSettings.java | 7 +- .../v1/stub/SubscriberStubSettings.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createinstance/AsyncCreateInstance.java | 7 +- .../AsyncCreateInstanceLRO.java | 7 +- .../createinstance/SyncCreateInstance.java | 7 +- ...ateInstanceLocationnameStringInstance.java | 7 +- ...yncCreateInstanceStringStringInstance.java | 7 +- .../deleteinstance/AsyncDeleteInstance.java | 7 +- .../AsyncDeleteInstanceLRO.java | 7 +- .../deleteinstance/SyncDeleteInstance.java | 7 +- .../SyncDeleteInstanceInstancename.java | 7 +- .../SyncDeleteInstanceString.java | 7 +- .../exportinstance/AsyncExportInstance.java | 7 +- .../AsyncExportInstanceLRO.java | 7 +- .../exportinstance/SyncExportInstance.java | 7 +- .../SyncExportInstanceStringOutputconfig.java | 7 +- .../AsyncFailoverInstance.java | 7 +- .../AsyncFailoverInstanceLRO.java | 7 +- .../SyncFailoverInstance.java | 7 +- ...overinstancerequestdataprotectionmode.java | 7 +- ...overinstancerequestdataprotectionmode.java | 7 +- .../getinstance/AsyncGetInstance.java | 7 +- .../getinstance/SyncGetInstance.java | 7 +- .../SyncGetInstanceInstancename.java | 7 +- .../getinstance/SyncGetInstanceString.java | 7 +- .../AsyncGetInstanceAuthString.java | 7 +- .../SyncGetInstanceAuthString.java | 7 +- ...SyncGetInstanceAuthStringInstancename.java | 7 +- .../SyncGetInstanceAuthStringString.java | 7 +- .../importinstance/AsyncImportInstance.java | 7 +- .../AsyncImportInstanceLRO.java | 7 +- .../importinstance/SyncImportInstance.java | 7 +- .../SyncImportInstanceStringInputconfig.java | 7 +- .../listinstances/AsyncListInstances.java | 7 +- .../AsyncListInstancesPaged.java | 7 +- .../listinstances/SyncListInstances.java | 7 +- .../SyncListInstancesLocationname.java | 7 +- .../SyncListInstancesString.java | 7 +- .../AsyncRescheduleMaintenance.java | 7 +- .../AsyncRescheduleMaintenanceLRO.java | 7 +- .../SyncRescheduleMaintenance.java | 7 +- ...tenancerequestrescheduletypeTimestamp.java | 7 +- ...tenancerequestrescheduletypeTimestamp.java | 7 +- .../updateinstance/AsyncUpdateInstance.java | 7 +- .../AsyncUpdateInstanceLRO.java | 7 +- .../updateinstance/SyncUpdateInstance.java | 7 +- .../SyncUpdateInstanceFieldmaskInstance.java | 7 +- .../upgradeinstance/AsyncUpgradeInstance.java | 7 +- .../AsyncUpgradeInstanceLRO.java | 7 +- .../upgradeinstance/SyncUpgradeInstance.java | 7 +- ...SyncUpgradeInstanceInstancenameString.java | 7 +- .../SyncUpgradeInstanceStringString.java | 7 +- .../getinstance/SyncGetInstance.java | 7 +- .../getinstance/SyncGetInstance.java | 7 +- .../cloud/redis/v1beta1/CloudRedisClient.java | 371 ++++++--- .../redis/v1beta1/CloudRedisSettings.java | 7 +- .../cloud/redis/v1beta1/package-info.java | 7 +- .../v1beta1/stub/CloudRedisStubSettings.java | 7 +- .../composeobject/AsyncComposeObject.java | 7 +- .../composeobject/SyncComposeObject.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createbucket/AsyncCreateBucket.java | 7 +- .../createbucket/SyncCreateBucket.java | 7 +- ...ncCreateBucketProjectnameBucketString.java | 7 +- .../SyncCreateBucketStringBucketString.java | 7 +- .../createhmackey/AsyncCreateHmacKey.java | 7 +- .../createhmackey/SyncCreateHmacKey.java | 7 +- .../SyncCreateHmacKeyProjectnameString.java | 7 +- .../SyncCreateHmacKeyStringString.java | 7 +- .../AsyncCreateNotification.java | 7 +- .../SyncCreateNotification.java | 7 +- ...teNotificationProjectnameNotification.java | 7 +- ...cCreateNotificationStringNotification.java | 7 +- .../deletebucket/AsyncDeleteBucket.java | 7 +- .../deletebucket/SyncDeleteBucket.java | 7 +- .../SyncDeleteBucketBucketname.java | 7 +- .../deletebucket/SyncDeleteBucketString.java | 7 +- .../deletehmackey/AsyncDeleteHmacKey.java | 7 +- .../deletehmackey/SyncDeleteHmacKey.java | 7 +- .../SyncDeleteHmacKeyStringProjectname.java | 7 +- .../SyncDeleteHmacKeyStringString.java | 7 +- .../AsyncDeleteNotification.java | 7 +- .../SyncDeleteNotification.java | 7 +- ...yncDeleteNotificationNotificationname.java | 7 +- .../SyncDeleteNotificationString.java | 7 +- .../deleteobject/AsyncDeleteObject.java | 7 +- .../deleteobject/SyncDeleteObject.java | 7 +- .../SyncDeleteObjectStringString.java | 7 +- .../SyncDeleteObjectStringStringLong.java | 7 +- .../getbucket/AsyncGetBucket.java | 7 +- .../getbucket/SyncGetBucket.java | 7 +- .../getbucket/SyncGetBucketBucketname.java | 7 +- .../getbucket/SyncGetBucketString.java | 7 +- .../gethmackey/AsyncGetHmacKey.java | 7 +- .../gethmackey/SyncGetHmacKey.java | 7 +- .../SyncGetHmacKeyStringProjectname.java | 7 +- .../SyncGetHmacKeyStringString.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../SyncGetIamPolicyResourcename.java | 7 +- .../getiampolicy/SyncGetIamPolicyString.java | 7 +- .../getnotification/AsyncGetNotification.java | 7 +- .../getnotification/SyncGetNotification.java | 7 +- .../SyncGetNotificationBucketname.java | 7 +- .../SyncGetNotificationString.java | 7 +- .../getobject/AsyncGetObject.java | 7 +- .../getobject/SyncGetObject.java | 7 +- .../getobject/SyncGetObjectStringString.java | 7 +- .../SyncGetObjectStringStringLong.java | 7 +- .../AsyncGetServiceAccount.java | 7 +- .../SyncGetServiceAccount.java | 7 +- .../SyncGetServiceAccountProjectname.java | 7 +- .../SyncGetServiceAccountString.java | 7 +- .../listbuckets/AsyncListBuckets.java | 7 +- .../listbuckets/AsyncListBucketsPaged.java | 7 +- .../listbuckets/SyncListBuckets.java | 7 +- .../SyncListBucketsProjectname.java | 7 +- .../listbuckets/SyncListBucketsString.java | 7 +- .../listhmackeys/AsyncListHmacKeys.java | 7 +- .../listhmackeys/AsyncListHmacKeysPaged.java | 7 +- .../listhmackeys/SyncListHmacKeys.java | 7 +- .../SyncListHmacKeysProjectname.java | 7 +- .../listhmackeys/SyncListHmacKeysString.java | 7 +- .../AsyncListNotifications.java | 7 +- .../AsyncListNotificationsPaged.java | 7 +- .../SyncListNotifications.java | 7 +- .../SyncListNotificationsProjectname.java | 7 +- .../SyncListNotificationsString.java | 7 +- .../listobjects/AsyncListObjects.java | 7 +- .../listobjects/AsyncListObjectsPaged.java | 7 +- .../listobjects/SyncListObjects.java | 7 +- .../SyncListObjectsProjectname.java | 7 +- .../listobjects/SyncListObjectsString.java | 7 +- .../AsyncLockBucketRetentionPolicy.java | 7 +- .../SyncLockBucketRetentionPolicy.java | 7 +- ...ncLockBucketRetentionPolicyBucketname.java | 7 +- .../SyncLockBucketRetentionPolicyString.java | 7 +- .../AsyncQueryWriteStatus.java | 7 +- .../SyncQueryWriteStatus.java | 7 +- .../SyncQueryWriteStatusString.java | 7 +- .../readobject/AsyncReadObject.java | 7 +- .../rewriteobject/AsyncRewriteObject.java | 7 +- .../rewriteobject/SyncRewriteObject.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../SyncSetIamPolicyResourcenamePolicy.java | 7 +- .../SyncSetIamPolicyStringPolicy.java | 7 +- .../AsyncStartResumableWrite.java | 7 +- .../SyncStartResumableWrite.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- ...tIamPermissionsResourcenameListstring.java | 7 +- ...yncTestIamPermissionsStringListstring.java | 7 +- .../updatebucket/AsyncUpdateBucket.java | 7 +- .../updatebucket/SyncUpdateBucket.java | 7 +- .../SyncUpdateBucketBucketFieldmask.java | 7 +- .../updatehmackey/AsyncUpdateHmacKey.java | 7 +- .../updatehmackey/SyncUpdateHmacKey.java | 7 +- ...UpdateHmacKeyHmackeymetadataFieldmask.java | 7 +- .../updateobject/AsyncUpdateObject.java | 7 +- .../updateobject/SyncUpdateObject.java | 7 +- .../SyncUpdateObjectObjectFieldmask.java | 7 +- .../writeobject/AsyncWriteObject.java | 7 +- .../deletebucket/SyncDeleteBucket.java | 7 +- .../deletebucket/SyncDeleteBucket.java | 7 +- .../com/google/storage/v2/StorageClient.java | 749 +++++++++++++----- .../google/storage/v2/StorageSettings.java | 7 +- .../com/google/storage/v2/package-info.java | 7 +- .../storage/v2/stub/StorageStubSettings.java | 7 +- 944 files changed, 9100 insertions(+), 3638 deletions(-) diff --git a/src/main/java/com/google/api/generator/gapic/composer/comment/CommentComposer.java b/src/main/java/com/google/api/generator/gapic/composer/comment/CommentComposer.java index 68ea3259be..3ed030417a 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/comment/CommentComposer.java +++ b/src/main/java/com/google/api/generator/gapic/composer/comment/CommentComposer.java @@ -60,8 +60,16 @@ public class CommentComposer { Arrays.asList( CommentStatement.withComment( LineComment.withComment( - "This snippet has been automatically generated for illustrative purposes only.")), + "This snippet has been automatically generated and should be regarded as a code template only.")), + CommentStatement.withComment( + LineComment.withComment("It will require modifications to work:")), + CommentStatement.withComment( + LineComment.withComment( + "- It may require correct/in-range values for request initialization.")), + CommentStatement.withComment( + LineComment.withComment( + "- It may require specifying regional endpoints when creating the service client as shown in")), CommentStatement.withComment( LineComment.withComment( - "It may require modifications to work in your environment."))); + "https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library"))); } diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden index 3afb4d32a2..e1de9b7f4e 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden @@ -16,8 +16,11 @@ import javax.annotation.Generated; * that map to API methods. Sample code to get started: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (BookshopClient bookshopClient = BookshopClient.create()) { * int booksCount = 1618425911; * Listbooks = new ArrayList<>(); @@ -54,8 +57,11 @@ import javax.annotation.Generated; * To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * BookshopSettings bookshopSettings = * BookshopSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -66,8 +72,11 @@ import javax.annotation.Generated; *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * BookshopSettings bookshopSettings = * BookshopSettings.newBuilder().setEndpoint(myEndpoint).build(); * BookshopClient bookshopClient = BookshopClient.create(bookshopSettings); @@ -129,8 +138,11 @@ public class BookshopClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (BookshopClient bookshopClient = BookshopClient.create()) { * int booksCount = 1618425911; * Listbooks = new ArrayList<>(); @@ -153,8 +165,11 @@ public class BookshopClient implements BackgroundResource { * Sample code: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (BookshopClient bookshopClient = BookshopClient.create()) { * String booksList = "booksList2-1119589686"; * Listbooks = new ArrayList<>(); @@ -177,8 +192,11 @@ public class BookshopClient implements BackgroundResource { * Sample code: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (BookshopClient bookshopClient = BookshopClient.create()) { * GetBookRequest request = * GetBookRequest.newBuilder() @@ -202,8 +220,11 @@ public class BookshopClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (BookshopClient bookshopClient = BookshopClient.create()) { * GetBookRequest request = * GetBookRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden index d060da2118..25847773a2 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden @@ -15,8 +15,11 @@ import javax.annotation.Generated; * that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) { * FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build(); * deprecatedServiceClient.fastFibonacci(request); @@ -53,8 +56,11 @@ import javax.annotation.Generated; *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DeprecatedServiceSettings deprecatedServiceSettings = * DeprecatedServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -66,8 +72,11 @@ import javax.annotation.Generated; *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DeprecatedServiceSettings deprecatedServiceSettings = * DeprecatedServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * DeprecatedServiceClient deprecatedServiceClient = @@ -134,8 +143,11 @@ public class DeprecatedServiceClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) { * FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build(); * deprecatedServiceClient.fastFibonacci(request); @@ -154,8 +166,11 @@ public class DeprecatedServiceClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) { * FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build(); * ApiFuturefuture = deprecatedServiceClient.fastFibonacciCallable().futureCall(request); @@ -173,8 +188,11 @@ public class DeprecatedServiceClient implements BackgroundResource { * Sample code: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) { * FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build(); * deprecatedServiceClient.slowFibonacci(request); @@ -195,8 +213,11 @@ public class DeprecatedServiceClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) { * FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build(); * ApiFuturefuture = deprecatedServiceClient.slowFibonacciCallable().futureCall(request); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden index 4d71e3f312..6debab4c44 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden @@ -35,8 +35,11 @@ import javax.annotation.Generated; * For example, to set the total timeout of fastFibonacci to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DeprecatedServiceSettings.Builder deprecatedServiceSettingsBuilder = * DeprecatedServiceSettings.newBuilder(); * deprecatedServiceSettingsBuilder diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden index edd591e115..62dbbadfda 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden @@ -44,8 +44,11 @@ import org.threeten.bp.Duration; *For example, to set the total timeout of fastFibonacci to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DeprecatedServiceStubSettings.Builder deprecatedServiceSettingsBuilder = * DeprecatedServiceStubSettings.newBuilder(); * deprecatedServiceSettingsBuilder diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden index d6d62ccf23..5d60b70463 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden @@ -34,8 +34,11 @@ import javax.annotation.Generated; * that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoResponse response = echoClient.echo(); * } @@ -70,8 +73,11 @@ import javax.annotation.Generated; *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * EchoSettings echoSettings = * EchoSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -82,8 +88,11 @@ import javax.annotation.Generated; *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * EchoSettings echoSettings = EchoSettings.newBuilder().setEndpoint(myEndpoint).build(); * EchoClient echoClient = EchoClient.create(echoSettings); * }@@ -155,8 +164,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoResponse response = echoClient.echo(); * } @@ -175,8 +187,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * ResourceName parent = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]"); * EchoResponse response = echoClient.echo(parent); @@ -197,8 +212,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * Status error = Status.newBuilder().build(); * EchoResponse response = echoClient.echo(error); @@ -218,8 +236,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * FoobarName name = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]"); * EchoResponse response = echoClient.echo(name); @@ -240,8 +261,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * String content = "content951530617"; * EchoResponse response = echoClient.echo(content); @@ -261,8 +285,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * String name = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString(); * EchoResponse response = echoClient.echo(name); @@ -282,8 +309,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * String parent = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString(); * EchoResponse response = echoClient.echo(parent); @@ -303,8 +333,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * String content = "content951530617"; * Severity severity = Severity.forNumber(0); @@ -327,8 +360,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoRequest request = * EchoRequest.newBuilder() @@ -353,8 +389,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoRequest request = * EchoRequest.newBuilder() @@ -378,8 +417,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * ExpandRequest request = * ExpandRequest.newBuilder().setContent("content951530617").setInfo("info3237038").build(); @@ -399,8 +441,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * ApiStreamObserverresponseObserver = * new ApiStreamObserver () { @@ -441,8 +486,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * BidiStreambidiStream = echoClient.chatCallable().call(); * EchoRequest request = @@ -468,8 +516,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * BidiStreambidiStream = echoClient.chatAgainCallable().call(); * EchoRequest request = @@ -495,8 +546,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * PagedExpandRequest request = * PagedExpandRequest.newBuilder() @@ -522,8 +576,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * PagedExpandRequest request = * PagedExpandRequest.newBuilder() @@ -549,8 +606,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * PagedExpandRequest request = * PagedExpandRequest.newBuilder() @@ -582,8 +642,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * for (EchoResponse element : echoClient.simplePagedExpand().iterateAll()) { * // doThingsWith(element); @@ -604,8 +667,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * PagedExpandRequest request = * PagedExpandRequest.newBuilder() @@ -631,8 +697,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * PagedExpandRequest request = * PagedExpandRequest.newBuilder() @@ -659,8 +728,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * PagedExpandRequest request = * PagedExpandRequest.newBuilder() @@ -692,8 +764,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * Duration ttl = Duration.newBuilder().build(); * WaitResponse response = echoClient.waitAsync(ttl).get(); @@ -713,8 +788,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * Timestamp endTime = Timestamp.newBuilder().build(); * WaitResponse response = echoClient.waitAsync(endTime).get(); @@ -734,8 +812,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * WaitRequest request = WaitRequest.newBuilder().build(); * WaitResponse response = echoClient.waitAsync(request).get(); @@ -754,8 +835,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * WaitRequest request = WaitRequest.newBuilder().build(); * OperationFuturefuture = @@ -774,8 +858,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * WaitRequest request = WaitRequest.newBuilder().build(); * ApiFuturefuture = echoClient.waitCallable().futureCall(request); @@ -793,8 +880,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * BlockRequest request = BlockRequest.newBuilder().build(); * BlockResponse response = echoClient.block(request); @@ -813,8 +903,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * BlockRequest request = BlockRequest.newBuilder().build(); * ApiFuturefuture = echoClient.blockCallable().futureCall(request); @@ -832,8 +925,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoRequest request = * EchoRequest.newBuilder() @@ -858,8 +954,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoRequest request = * EchoRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden index 09fc6298a2..3b6ece49e5 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden @@ -42,8 +42,11 @@ import javax.annotation.Generated; *For example, to set the total timeout of echo to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder(); * echoSettingsBuilder * .echoSettings() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden index 4c35344457..b04e5d4767 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden @@ -70,8 +70,11 @@ import org.threeten.bp.Duration; *For example, to set the total timeout of echo to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * EchoStubSettings.Builder echoSettingsBuilder = EchoStubSettings.newBuilder(); * echoSettingsBuilder * .echoSettings() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden index f1e7e39b70..bcd0f26738 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden @@ -24,8 +24,11 @@ import javax.annotation.Generated; * that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * String parent = UserName.of("[USER]").toString(); * String displayName = "displayName1714148973"; @@ -63,8 +66,11 @@ import javax.annotation.Generated; *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * IdentitySettings identitySettings = * IdentitySettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -75,8 +81,11 @@ import javax.annotation.Generated; *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * IdentitySettings identitySettings = * IdentitySettings.newBuilder().setEndpoint(myEndpoint).build(); * IdentityClient identityClient = IdentityClient.create(identitySettings); @@ -138,8 +147,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * String parent = UserName.of("[USER]").toString(); * String displayName = "displayName1714148973"; @@ -167,8 +179,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * String parent = UserName.of("[USER]").toString(); * String displayName = "displayName1714148973"; @@ -221,8 +236,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * String parent = UserName.of("[USER]").toString(); * String displayName = "displayName1714148973"; @@ -308,8 +326,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * CreateUserRequest request = * CreateUserRequest.newBuilder() @@ -332,8 +353,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * CreateUserRequest request = * CreateUserRequest.newBuilder() @@ -355,8 +379,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * UserName name = UserName.of("[USER]"); * User response = identityClient.getUser(name); @@ -377,8 +404,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * String name = UserName.of("[USER]").toString(); * User response = identityClient.getUser(name); @@ -398,8 +428,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * GetUserRequest request = * GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build(); @@ -419,8 +452,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * GetUserRequest request = * GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build(); @@ -439,8 +475,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * UpdateUserRequest request = * UpdateUserRequest.newBuilder().setUser(User.newBuilder().build()).build(); @@ -460,8 +499,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * UpdateUserRequest request = * UpdateUserRequest.newBuilder().setUser(User.newBuilder().build()).build(); @@ -480,8 +522,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * UserName name = UserName.of("[USER]"); * identityClient.deleteUser(name); @@ -502,8 +547,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * String name = UserName.of("[USER]").toString(); * identityClient.deleteUser(name); @@ -523,8 +571,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * DeleteUserRequest request = * DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build(); @@ -544,8 +595,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * DeleteUserRequest request = * DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build(); @@ -564,8 +618,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * ListUsersRequest request = * ListUsersRequest.newBuilder() @@ -590,8 +647,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * ListUsersRequest request = * ListUsersRequest.newBuilder() @@ -615,8 +675,11 @@ public class IdentityClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (IdentityClient identityClient = IdentityClient.create()) { * ListUsersRequest request = * ListUsersRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden index bf0e8a54ca..54f6b34b93 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden @@ -77,8 +77,11 @@ import org.threeten.bp.Duration; *For example, to set the total timeout of deleteLog to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * LoggingServiceV2StubSettings.Builder loggingServiceV2SettingsBuilder = * LoggingServiceV2StubSettings.newBuilder(); * loggingServiceV2SettingsBuilder diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden index 0672860f63..78b665668f 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden @@ -32,8 +32,11 @@ import javax.annotation.Generated; * that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * String displayName = "displayName1714148973"; * String description = "description-1724546052"; @@ -70,8 +73,11 @@ import javax.annotation.Generated; *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * MessagingSettings messagingSettings = * MessagingSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -82,8 +88,11 @@ import javax.annotation.Generated; *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * MessagingSettings messagingSettings = * MessagingSettings.newBuilder().setEndpoint(myEndpoint).build(); * MessagingClient messagingClient = MessagingClient.create(messagingSettings); @@ -156,8 +165,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * String displayName = "displayName1714148973"; * String description = "description-1724546052"; @@ -183,8 +195,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * CreateRoomRequest request = * CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build(); @@ -204,8 +219,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * CreateRoomRequest request = * CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build(); @@ -224,8 +242,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * RoomName name = RoomName.of("[ROOM]"); * Room response = messagingClient.getRoom(name); @@ -246,8 +267,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * String name = RoomName.of("[ROOM]").toString(); * Room response = messagingClient.getRoom(name); @@ -267,8 +291,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * GetRoomRequest request = * GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build(); @@ -288,8 +315,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * GetRoomRequest request = * GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build(); @@ -308,8 +338,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * UpdateRoomRequest request = * UpdateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build(); @@ -329,8 +362,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * UpdateRoomRequest request = * UpdateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build(); @@ -349,8 +385,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * RoomName name = RoomName.of("[ROOM]"); * messagingClient.deleteRoom(name); @@ -371,8 +410,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * String name = RoomName.of("[ROOM]").toString(); * messagingClient.deleteRoom(name); @@ -392,8 +434,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * DeleteRoomRequest request = * DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build(); @@ -413,8 +458,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * DeleteRoomRequest request = * DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build(); @@ -433,8 +481,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * ListRoomsRequest request = * ListRoomsRequest.newBuilder() @@ -459,8 +510,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * ListRoomsRequest request = * ListRoomsRequest.newBuilder() @@ -484,8 +538,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * ListRoomsRequest request = * ListRoomsRequest.newBuilder() @@ -516,8 +573,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * ProfileName parent = ProfileName.of("[USER]"); * ByteString image = ByteString.EMPTY; @@ -543,8 +603,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * ProfileName parent = ProfileName.of("[USER]"); * String text = "text3556653"; @@ -570,8 +633,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * RoomName parent = RoomName.of("[ROOM]"); * ByteString image = ByteString.EMPTY; @@ -597,8 +663,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * RoomName parent = RoomName.of("[ROOM]"); * String text = "text3556653"; @@ -624,8 +693,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * String parent = ProfileName.of("[USER]").toString(); * ByteString image = ByteString.EMPTY; @@ -651,8 +723,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * String parent = ProfileName.of("[USER]").toString(); * String text = "text3556653"; @@ -678,8 +753,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * CreateBlurbRequest request = * CreateBlurbRequest.newBuilder() @@ -702,8 +780,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * CreateBlurbRequest request = * CreateBlurbRequest.newBuilder() @@ -725,8 +806,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * BlurbName name = BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]"); * Blurb response = messagingClient.getBlurb(name); @@ -747,8 +831,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * String name = * BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString(); @@ -769,8 +856,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * GetBlurbRequest request = * GetBlurbRequest.newBuilder() @@ -792,8 +882,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * GetBlurbRequest request = * GetBlurbRequest.newBuilder() @@ -814,8 +907,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * UpdateBlurbRequest request = * UpdateBlurbRequest.newBuilder().setBlurb(Blurb.newBuilder().build()).build(); @@ -835,8 +931,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * UpdateBlurbRequest request = * UpdateBlurbRequest.newBuilder().setBlurb(Blurb.newBuilder().build()).build(); @@ -855,8 +954,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * BlurbName name = BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]"); * messagingClient.deleteBlurb(name); @@ -877,8 +979,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * String name = * BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString(); @@ -899,8 +1004,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * DeleteBlurbRequest request = * DeleteBlurbRequest.newBuilder() @@ -922,8 +1030,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * DeleteBlurbRequest request = * DeleteBlurbRequest.newBuilder() @@ -944,8 +1055,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * ProfileName parent = ProfileName.of("[USER]"); * for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) { @@ -968,8 +1082,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * RoomName parent = RoomName.of("[ROOM]"); * for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) { @@ -992,8 +1109,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * String parent = ProfileName.of("[USER]").toString(); * for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) { @@ -1015,8 +1135,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * ListBlurbsRequest request = * ListBlurbsRequest.newBuilder() @@ -1042,8 +1165,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * ListBlurbsRequest request = * ListBlurbsRequest.newBuilder() @@ -1068,8 +1194,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * ListBlurbsRequest request = * ListBlurbsRequest.newBuilder() @@ -1101,8 +1230,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * String query = "query107944136"; * SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(query).get(); @@ -1123,8 +1255,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * SearchBlurbsRequest request = * SearchBlurbsRequest.newBuilder() @@ -1150,8 +1285,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * SearchBlurbsRequest request = * SearchBlurbsRequest.newBuilder() @@ -1177,8 +1315,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * SearchBlurbsRequest request = * SearchBlurbsRequest.newBuilder() @@ -1202,8 +1343,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * StreamBlurbsRequest request = * StreamBlurbsRequest.newBuilder().setName(ProfileName.of("[USER]").toString()).build(); @@ -1225,8 +1369,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * ApiStreamObserverresponseObserver = * new ApiStreamObserver () { @@ -1266,8 +1413,11 @@ public class MessagingClient implements BackgroundResource { * Sample code: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagingClient messagingClient = MessagingClient.create()) { * BidiStreambidiStream = * messagingClient.connectCallable().call(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden index 75e5e38d9c..ba8d449186 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden @@ -78,8 +78,11 @@ import org.threeten.bp.Duration; * For example, to set the total timeout of createTopic to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * PublisherStubSettings.Builder publisherSettingsBuilder = PublisherStubSettings.newBuilder(); * publisherSettingsBuilder * .createTopicSettings() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/AsyncGetBook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/AsyncGetBook.golden index 5797b9ea1b..a11e0c5ad1 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/AsyncGetBook.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/AsyncGetBook.golden @@ -30,8 +30,11 @@ public class AsyncGetBook { } public static void asyncGetBook() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (BookshopClient bookshopClient = BookshopClient.create()) { GetBookRequest request = GetBookRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetCredentialsProvider.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetCredentialsProvider.golden index 6561d22d89..c34c8e5ace 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetCredentialsProvider.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetCredentialsProvider.golden @@ -29,8 +29,11 @@ public class SyncCreateSetCredentialsProvider { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library BookshopSettings bookshopSettings = BookshopSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetEndpoint.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetEndpoint.golden index f1f5dffa33..5ab576b5ab 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetEndpoint.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetEndpoint.golden @@ -28,8 +28,11 @@ public class SyncCreateSetEndpoint { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library BookshopSettings bookshopSettings = BookshopSettings.newBuilder().setEndpoint(myEndpoint).build(); BookshopClient bookshopClient = BookshopClient.create(bookshopSettings); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBook.golden index 8b9a49a334..9bcbe39862 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBook.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBook.golden @@ -29,8 +29,11 @@ public class SyncGetBook { } public static void syncGetBook() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (BookshopClient bookshopClient = BookshopClient.create()) { GetBookRequest request = GetBookRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookIntListbook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookIntListbook.golden index 3fcba7a522..698f2a1138 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookIntListbook.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookIntListbook.golden @@ -29,8 +29,11 @@ public class SyncGetBookIntListbook { } public static void syncGetBookIntListbook() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (BookshopClient bookshopClient = BookshopClient.create()) { int booksCount = 1618425911; Listbooks = new ArrayList<>(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookStringListbook.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookStringListbook.golden index 1cdc59bdfe..c893608c2e 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookStringListbook.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookStringListbook.golden @@ -29,8 +29,11 @@ public class SyncGetBookStringListbook { } public static void syncGetBookStringListbook() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (BookshopClient bookshopClient = BookshopClient.create()) { String booksList = "booksList2-1119589686"; List books = new ArrayList<>(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncFastFibonacci.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncFastFibonacci.golden index 4f22840779..c47156c7d9 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncFastFibonacci.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncFastFibonacci.golden @@ -29,8 +29,11 @@ public class AsyncFastFibonacci { } public static void asyncFastFibonacci() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) { FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build(); ApiFuture future = deprecatedServiceClient.fastFibonacciCallable().futureCall(request); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncSlowFibonacci.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncSlowFibonacci.golden index f0f6130bf5..fdb781354b 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncSlowFibonacci.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncSlowFibonacci.golden @@ -29,8 +29,11 @@ public class AsyncSlowFibonacci { } public static void asyncSlowFibonacci() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) { FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build(); ApiFuture future = deprecatedServiceClient.slowFibonacciCallable().futureCall(request); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetCredentialsProvider.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetCredentialsProvider.golden index c138703b0b..2d9e73b891 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetCredentialsProvider.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetCredentialsProvider.golden @@ -29,8 +29,11 @@ public class SyncCreateSetCredentialsProvider { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DeprecatedServiceSettings deprecatedServiceSettings = DeprecatedServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetEndpoint.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetEndpoint.golden index a719126c25..24400c927b 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetEndpoint.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetEndpoint.golden @@ -28,8 +28,11 @@ public class SyncCreateSetEndpoint { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DeprecatedServiceSettings deprecatedServiceSettings = DeprecatedServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); DeprecatedServiceClient deprecatedServiceClient = diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncFastFibonacci.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncFastFibonacci.golden index b2c02d3e7c..e05200321d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncFastFibonacci.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncFastFibonacci.golden @@ -28,8 +28,11 @@ public class SyncFastFibonacci { } public static void syncFastFibonacci() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) { FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build(); deprecatedServiceClient.fastFibonacci(request); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncSlowFibonacci.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncSlowFibonacci.golden index 8a4e5ac674..d9f5432437 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncSlowFibonacci.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncSlowFibonacci.golden @@ -28,8 +28,11 @@ public class SyncSlowFibonacci { } public static void syncSlowFibonacci() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) { FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build(); deprecatedServiceClient.slowFibonacci(request); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncBlock.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncBlock.golden index b186e09e24..c62c2f43d8 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncBlock.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncBlock.golden @@ -29,8 +29,11 @@ public class AsyncBlock { } public static void asyncBlock() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { BlockRequest request = BlockRequest.newBuilder().build(); ApiFuture future = echoClient.blockCallable().futureCall(request); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden index 9e5ae4d943..8b359c46f5 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden @@ -32,8 +32,11 @@ public class AsyncChat { } public static void asyncChat() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { BidiStream bidiStream = echoClient.chatCallable().call(); EchoRequest request = diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden index e0378fbf9f..90331b833e 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden @@ -32,8 +32,11 @@ public class AsyncChatAgain { } public static void asyncChatAgain() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { BidiStream bidiStream = echoClient.chatAgainCallable().call(); EchoRequest request = diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden index ee607a7efb..d51c9aeae2 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden @@ -32,8 +32,11 @@ public class AsyncCollect { } public static void asyncCollect() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { ApiStreamObserver responseObserver = new ApiStreamObserver () { diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden index 7e85f18fbf..a2886c0001 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden @@ -32,8 +32,11 @@ public class AsyncCollideName { } public static void asyncCollideName() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { EchoRequest request = EchoRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden index 859347ff50..4ee2bc4cd1 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden @@ -32,8 +32,11 @@ public class AsyncEcho { } public static void asyncEcho() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { EchoRequest request = EchoRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpand.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpand.golden index d396bc513b..51d367798c 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpand.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpand.golden @@ -29,8 +29,11 @@ public class AsyncExpand { } public static void asyncExpand() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { ExpandRequest request = ExpandRequest.newBuilder().setContent("content951530617").setInfo("info3237038").build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpand.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpand.golden index d2b5bb96cb..0e8b197ad3 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpand.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpand.golden @@ -29,8 +29,11 @@ public class AsyncPagedExpand { } public static void asyncPagedExpand() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { PagedExpandRequest request = PagedExpandRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpandPaged.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpandPaged.golden index 84015b1301..0ae0cab7d6 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpandPaged.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpandPaged.golden @@ -30,8 +30,11 @@ public class AsyncPagedExpandPaged { } public static void asyncPagedExpandPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { PagedExpandRequest request = PagedExpandRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpand.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpand.golden index 092552fbcf..e944abb1a3 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpand.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpand.golden @@ -29,8 +29,11 @@ public class AsyncSimplePagedExpand { } public static void asyncSimplePagedExpand() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { PagedExpandRequest request = PagedExpandRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpandPaged.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpandPaged.golden index e8b415ee93..058295f62e 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpandPaged.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpandPaged.golden @@ -30,8 +30,11 @@ public class AsyncSimplePagedExpandPaged { } public static void asyncSimplePagedExpandPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { PagedExpandRequest request = PagedExpandRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWait.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWait.golden index 6fe7262fcd..0bb588d43a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWait.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWait.golden @@ -29,8 +29,11 @@ public class AsyncWait { } public static void asyncWait() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { WaitRequest request = WaitRequest.newBuilder().build(); ApiFuture future = echoClient.waitCallable().futureCall(request); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWaitLRO.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWaitLRO.golden index 5cf6e62b91..205131670a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWaitLRO.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWaitLRO.golden @@ -30,8 +30,11 @@ public class AsyncWaitLRO { } public static void asyncWaitLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { WaitRequest request = WaitRequest.newBuilder().build(); OperationFuture future = diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncBlock.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncBlock.golden index a4f343bf79..f77e29adf9 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncBlock.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncBlock.golden @@ -28,8 +28,11 @@ public class SyncBlock { } public static void syncBlock() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { BlockRequest request = BlockRequest.newBuilder().build(); BlockResponse response = echoClient.block(request); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden index 77bd8ff45a..5d412efe85 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden @@ -31,8 +31,11 @@ public class SyncCollideName { } public static void syncCollideName() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { EchoRequest request = EchoRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetCredentialsProvider.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetCredentialsProvider.golden index b867d8de33..fbcaeceee3 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetCredentialsProvider.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetCredentialsProvider.golden @@ -29,8 +29,11 @@ public class SyncCreateSetCredentialsProvider { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library EchoSettings echoSettings = EchoSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetEndpoint.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetEndpoint.golden index 046c0083e1..7e5bdd85c8 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetEndpoint.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetEndpoint.golden @@ -28,8 +28,11 @@ public class SyncCreateSetEndpoint { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library EchoSettings echoSettings = EchoSettings.newBuilder().setEndpoint(myEndpoint).build(); EchoClient echoClient = EchoClient.create(echoSettings); } diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden index 4335448ae0..404cd05a88 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden @@ -31,8 +31,11 @@ public class SyncEcho { } public static void syncEcho() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { EchoRequest request = EchoRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoFoobarname.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoFoobarname.golden index a998ecaa0d..99d0105b4d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoFoobarname.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoFoobarname.golden @@ -28,8 +28,11 @@ public class SyncEchoFoobarname { } public static void syncEchoFoobarname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { FoobarName name = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]"); EchoResponse response = echoClient.echo(name); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoNoargs.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoNoargs.golden index b1ea342923..1939f2941f 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoNoargs.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoNoargs.golden @@ -27,8 +27,11 @@ public class SyncEchoNoargs { } public static void syncEchoNoargs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { EchoResponse response = echoClient.echo(); } diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoResourcename.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoResourcename.golden index b352a6f215..a6bff404df 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoResourcename.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoResourcename.golden @@ -29,8 +29,11 @@ public class SyncEchoResourcename { } public static void syncEchoResourcename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { ResourceName parent = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]"); EchoResponse response = echoClient.echo(parent); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStatus.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStatus.golden index 2d1e7fd96e..b9471f8203 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStatus.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStatus.golden @@ -28,8 +28,11 @@ public class SyncEchoStatus { } public static void syncEchoStatus() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { Status error = Status.newBuilder().build(); EchoResponse response = echoClient.echo(error); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString.golden index 8f8737d11a..bb9c0bc308 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString.golden @@ -27,8 +27,11 @@ public class SyncEchoString { } public static void syncEchoString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { String content = "content951530617"; EchoResponse response = echoClient.echo(content); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString1.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString1.golden index e15958515c..8bc3c4036c 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString1.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString1.golden @@ -28,8 +28,11 @@ public class SyncEchoString1 { } public static void syncEchoString1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { String name = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString(); EchoResponse response = echoClient.echo(name); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString2.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString2.golden index 44d9413448..268b1c769e 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString2.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString2.golden @@ -28,8 +28,11 @@ public class SyncEchoString2 { } public static void syncEchoString2() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { String parent = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString(); EchoResponse response = echoClient.echo(parent); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStringSeverity.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStringSeverity.golden index 30b06aaba0..5a62b9f4ad 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStringSeverity.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStringSeverity.golden @@ -28,8 +28,11 @@ public class SyncEchoStringSeverity { } public static void syncEchoStringSeverity() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { String content = "content951530617"; Severity severity = Severity.forNumber(0); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpand.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpand.golden index 7f0b48f0f7..4ae90f53cc 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpand.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpand.golden @@ -28,8 +28,11 @@ public class SyncPagedExpand { } public static void syncPagedExpand() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { PagedExpandRequest request = PagedExpandRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand.golden index c6056f3781..11bc4352c5 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand.golden @@ -28,8 +28,11 @@ public class SyncSimplePagedExpand { } public static void syncSimplePagedExpand() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { PagedExpandRequest request = PagedExpandRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpandNoargs.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpandNoargs.golden index d6ddc523dc..40ef059d89 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpandNoargs.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpandNoargs.golden @@ -27,8 +27,11 @@ public class SyncSimplePagedExpandNoargs { } public static void syncSimplePagedExpandNoargs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { for (EchoResponse element : echoClient.simplePagedExpand().iterateAll()) { // doThingsWith(element); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWait.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWait.golden index 3f463f0e69..07679a60e1 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWait.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWait.golden @@ -28,8 +28,11 @@ public class SyncWait { } public static void syncWait() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { WaitRequest request = WaitRequest.newBuilder().build(); WaitResponse response = echoClient.waitAsync(request).get(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitDuration.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitDuration.golden index e9e3c49dce..9bec9d30ef 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitDuration.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitDuration.golden @@ -28,8 +28,11 @@ public class SyncWaitDuration { } public static void syncWaitDuration() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { Duration ttl = Duration.newBuilder().build(); WaitResponse response = echoClient.waitAsync(ttl).get(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitTimestamp.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitTimestamp.golden index f7e5e9dfe5..58e6f3464c 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitTimestamp.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitTimestamp.golden @@ -28,8 +28,11 @@ public class SyncWaitTimestamp { } public static void syncWaitTimestamp() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { Timestamp endTime = Timestamp.newBuilder().build(); WaitResponse response = echoClient.waitAsync(endTime).get(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncCreateUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncCreateUser.golden index f5c58710a7..5746bce725 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncCreateUser.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncCreateUser.golden @@ -30,8 +30,11 @@ public class AsyncCreateUser { } public static void asyncCreateUser() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { CreateUserRequest request = CreateUserRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncDeleteUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncDeleteUser.golden index 6ca7457c4d..e2a2d79316 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncDeleteUser.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncDeleteUser.golden @@ -30,8 +30,11 @@ public class AsyncDeleteUser { } public static void asyncDeleteUser() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { DeleteUserRequest request = DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncGetUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncGetUser.golden index f3d3e87c1c..fe848f43d2 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncGetUser.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncGetUser.golden @@ -30,8 +30,11 @@ public class AsyncGetUser { } public static void asyncGetUser() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { GetUserRequest request = GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsers.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsers.golden index 6fed1e6611..a5aa944c8f 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsers.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsers.golden @@ -29,8 +29,11 @@ public class AsyncListUsers { } public static void asyncListUsers() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { ListUsersRequest request = ListUsersRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPaged.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPaged.golden index da47c352f8..9b7cafa65d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPaged.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPaged.golden @@ -30,8 +30,11 @@ public class AsyncListUsersPaged { } public static void asyncListUsersPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { ListUsersRequest request = ListUsersRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncUpdateUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncUpdateUser.golden index 511e7188ed..be44912297 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncUpdateUser.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncUpdateUser.golden @@ -29,8 +29,11 @@ public class AsyncUpdateUser { } public static void asyncUpdateUser() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { UpdateUserRequest request = UpdateUserRequest.newBuilder().setUser(User.newBuilder().build()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetCredentialsProvider.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetCredentialsProvider.golden index 7950320dbb..f859c452de 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetCredentialsProvider.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetCredentialsProvider.golden @@ -29,8 +29,11 @@ public class SyncCreateSetCredentialsProvider { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library IdentitySettings identitySettings = IdentitySettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetEndpoint.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetEndpoint.golden index b1b7add9db..015f9dfcd7 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetEndpoint.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetEndpoint.golden @@ -28,8 +28,11 @@ public class SyncCreateSetEndpoint { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library IdentitySettings identitySettings = IdentitySettings.newBuilder().setEndpoint(myEndpoint).build(); IdentityClient identityClient = IdentityClient.create(identitySettings); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUser.golden index dbd8badb47..7d8c03e141 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUser.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUser.golden @@ -29,8 +29,11 @@ public class SyncCreateUser { } public static void syncCreateUser() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { CreateUserRequest request = CreateUserRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringString.golden index 953dc0706b..d8b266a31a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringString.golden @@ -28,8 +28,11 @@ public class SyncCreateUserStringStringString { } public static void syncCreateUserStringStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { String parent = UserName.of("[USER]").toString(); String displayName = "displayName1714148973"; diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringIntStringBooleanDouble.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringIntStringBooleanDouble.golden index 85d9ab1960..6556a596f1 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringIntStringBooleanDouble.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringIntStringBooleanDouble.golden @@ -28,8 +28,11 @@ public class SyncCreateUserStringStringStringIntStringBooleanDouble { } public static void syncCreateUserStringStringStringIntStringBooleanDouble() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { String parent = UserName.of("[USER]").toString(); String displayName = "displayName1714148973"; diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden index d222f048a8..ac1a283fd2 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden @@ -29,8 +29,11 @@ public class SyncCreateUserStringStringStringStringStringIntStringStringStringSt public static void syncCreateUserStringStringStringStringStringIntStringStringStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { String parent = UserName.of("[USER]").toString(); String displayName = "displayName1714148973"; diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUser.golden index 1c836c26f8..53c45c3cbb 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUser.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUser.golden @@ -29,8 +29,11 @@ public class SyncDeleteUser { } public static void syncDeleteUser() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { DeleteUserRequest request = DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserString.golden index 22e00a180f..eece238c02 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserString.golden @@ -28,8 +28,11 @@ public class SyncDeleteUserString { } public static void syncDeleteUserString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { String name = UserName.of("[USER]").toString(); identityClient.deleteUser(name); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserUsername.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserUsername.golden index 55d2b6fb29..b5be27d6ef 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserUsername.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserUsername.golden @@ -28,8 +28,11 @@ public class SyncDeleteUserUsername { } public static void syncDeleteUserUsername() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { UserName name = UserName.of("[USER]"); identityClient.deleteUser(name); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUser.golden index 972382be7f..b1365f3b99 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUser.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUser.golden @@ -29,8 +29,11 @@ public class SyncGetUser { } public static void syncGetUser() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { GetUserRequest request = GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserString.golden index 8ccf1245c0..44a6a17256 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserString.golden @@ -28,8 +28,11 @@ public class SyncGetUserString { } public static void syncGetUserString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { String name = UserName.of("[USER]").toString(); User response = identityClient.getUser(name); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserUsername.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserUsername.golden index 5d7441c7bc..409787850e 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserUsername.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserUsername.golden @@ -28,8 +28,11 @@ public class SyncGetUserUsername { } public static void syncGetUserUsername() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { UserName name = UserName.of("[USER]"); User response = identityClient.getUser(name); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsers.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsers.golden index e70025e5a2..1fa89b2cf7 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsers.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsers.golden @@ -28,8 +28,11 @@ public class SyncListUsers { } public static void syncListUsers() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { ListUsersRequest request = ListUsersRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncUpdateUser.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncUpdateUser.golden index 32b476711d..919953f762 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncUpdateUser.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncUpdateUser.golden @@ -28,8 +28,11 @@ public class SyncUpdateUser { } public static void syncUpdateUser() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (IdentityClient identityClient = IdentityClient.create()) { UpdateUserRequest request = UpdateUserRequest.newBuilder().setUser(User.newBuilder().build()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncConnect.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncConnect.golden index c87c91e312..7c844cce85 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncConnect.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncConnect.golden @@ -29,8 +29,11 @@ public class AsyncConnect { } public static void asyncConnect() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { BidiStream bidiStream = messagingClient.connectCallable().call(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateBlurb.golden index f3029462c4..f015b74a58 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateBlurb.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateBlurb.golden @@ -30,8 +30,11 @@ public class AsyncCreateBlurb { } public static void asyncCreateBlurb() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { CreateBlurbRequest request = CreateBlurbRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateRoom.golden index 8d924fe7f8..e0dc0aedac 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateRoom.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateRoom.golden @@ -29,8 +29,11 @@ public class AsyncCreateRoom { } public static void asyncCreateRoom() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { CreateRoomRequest request = CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteBlurb.golden index b8b3bf208d..8eabcc893a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteBlurb.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteBlurb.golden @@ -30,8 +30,11 @@ public class AsyncDeleteBlurb { } public static void asyncDeleteBlurb() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { DeleteBlurbRequest request = DeleteBlurbRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteRoom.golden index 1e23c521e8..ebe5be44c2 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteRoom.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteRoom.golden @@ -30,8 +30,11 @@ public class AsyncDeleteRoom { } public static void asyncDeleteRoom() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { DeleteRoomRequest request = DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetBlurb.golden index 9662bed70a..627465df2d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetBlurb.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetBlurb.golden @@ -30,8 +30,11 @@ public class AsyncGetBlurb { } public static void asyncGetBlurb() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { GetBlurbRequest request = GetBlurbRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetRoom.golden index a1a9b7fb06..caa0b727de 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetRoom.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetRoom.golden @@ -30,8 +30,11 @@ public class AsyncGetRoom { } public static void asyncGetRoom() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { GetRoomRequest request = GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbs.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbs.golden index d038d95045..1f2eb73d9d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbs.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbs.golden @@ -30,8 +30,11 @@ public class AsyncListBlurbs { } public static void asyncListBlurbs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { ListBlurbsRequest request = ListBlurbsRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPaged.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPaged.golden index 7be9a33f88..37928394c7 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPaged.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPaged.golden @@ -31,8 +31,11 @@ public class AsyncListBlurbsPaged { } public static void asyncListBlurbsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { ListBlurbsRequest request = ListBlurbsRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRooms.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRooms.golden index 5a89fb6825..a658df0fae 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRooms.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRooms.golden @@ -29,8 +29,11 @@ public class AsyncListRooms { } public static void asyncListRooms() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { ListRoomsRequest request = ListRoomsRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPaged.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPaged.golden index 58fd2e1496..58686d44a7 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPaged.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPaged.golden @@ -30,8 +30,11 @@ public class AsyncListRoomsPaged { } public static void asyncListRoomsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { ListRoomsRequest request = ListRoomsRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbs.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbs.golden index 55b6198dab..6161b2e104 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbs.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbs.golden @@ -30,8 +30,11 @@ public class AsyncSearchBlurbs { } public static void asyncSearchBlurbs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { SearchBlurbsRequest request = SearchBlurbsRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbsLRO.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbsLRO.golden index 37ac388c95..73dac257ea 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbsLRO.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbsLRO.golden @@ -31,8 +31,11 @@ public class AsyncSearchBlurbsLRO { } public static void asyncSearchBlurbsLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { SearchBlurbsRequest request = SearchBlurbsRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSendBlurbs.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSendBlurbs.golden index b8bfc3afc7..6f608c23dc 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSendBlurbs.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSendBlurbs.golden @@ -31,8 +31,11 @@ public class AsyncSendBlurbs { } public static void asyncSendBlurbs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { ApiStreamObserver responseObserver = new ApiStreamObserver () { diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncStreamBlurbs.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncStreamBlurbs.golden index 4405ce965a..6588736a1d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncStreamBlurbs.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncStreamBlurbs.golden @@ -30,8 +30,11 @@ public class AsyncStreamBlurbs { } public static void asyncStreamBlurbs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { StreamBlurbsRequest request = StreamBlurbsRequest.newBuilder().setName(ProfileName.of("[USER]").toString()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateBlurb.golden index a3ce5f6f77..c7e73b8638 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateBlurb.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateBlurb.golden @@ -29,8 +29,11 @@ public class AsyncUpdateBlurb { } public static void asyncUpdateBlurb() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { UpdateBlurbRequest request = UpdateBlurbRequest.newBuilder().setBlurb(Blurb.newBuilder().build()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateRoom.golden index 779495250c..c8bc11c5ba 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateRoom.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateRoom.golden @@ -29,8 +29,11 @@ public class AsyncUpdateRoom { } public static void asyncUpdateRoom() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { UpdateRoomRequest request = UpdateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurb.golden index bddecdeb46..00fb6d9940 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurb.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurb.golden @@ -29,8 +29,11 @@ public class SyncCreateBlurb { } public static void syncCreateBlurb() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { CreateBlurbRequest request = CreateBlurbRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameBytestring.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameBytestring.golden index 7e202c5c41..f9d342accf 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameBytestring.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameBytestring.golden @@ -29,8 +29,11 @@ public class SyncCreateBlurbProfilenameBytestring { } public static void syncCreateBlurbProfilenameBytestring() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { ProfileName parent = ProfileName.of("[USER]"); ByteString image = ByteString.EMPTY; diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameString.golden index 0dfe1f3abc..f165c7ef76 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameString.golden @@ -28,8 +28,11 @@ public class SyncCreateBlurbProfilenameString { } public static void syncCreateBlurbProfilenameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { ProfileName parent = ProfileName.of("[USER]"); String text = "text3556653"; diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameBytestring.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameBytestring.golden index 194ee34998..2818243a50 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameBytestring.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameBytestring.golden @@ -29,8 +29,11 @@ public class SyncCreateBlurbRoomnameBytestring { } public static void syncCreateBlurbRoomnameBytestring() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { RoomName parent = RoomName.of("[ROOM]"); ByteString image = ByteString.EMPTY; diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameString.golden index 994d16b1a3..f05bd4f87b 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameString.golden @@ -28,8 +28,11 @@ public class SyncCreateBlurbRoomnameString { } public static void syncCreateBlurbRoomnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { RoomName parent = RoomName.of("[ROOM]"); String text = "text3556653"; diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringBytestring.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringBytestring.golden index 0c8f22dca3..3e630a4b15 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringBytestring.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringBytestring.golden @@ -29,8 +29,11 @@ public class SyncCreateBlurbStringBytestring { } public static void syncCreateBlurbStringBytestring() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { String parent = ProfileName.of("[USER]").toString(); ByteString image = ByteString.EMPTY; diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringString.golden index 19e8b3e33f..562d27535a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringString.golden @@ -28,8 +28,11 @@ public class SyncCreateBlurbStringString { } public static void syncCreateBlurbStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { String parent = ProfileName.of("[USER]").toString(); String text = "text3556653"; diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoom.golden index 6dd645ee49..57b517225b 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoom.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoom.golden @@ -28,8 +28,11 @@ public class SyncCreateRoom { } public static void syncCreateRoom() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { CreateRoomRequest request = CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoomStringString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoomStringString.golden index 5d47cfb6e3..ebcc0cc72d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoomStringString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoomStringString.golden @@ -27,8 +27,11 @@ public class SyncCreateRoomStringString { } public static void syncCreateRoomStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { String displayName = "displayName1714148973"; String description = "description-1724546052"; diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetCredentialsProvider.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetCredentialsProvider.golden index 4ac54cdfb9..ae4425a5e1 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetCredentialsProvider.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetCredentialsProvider.golden @@ -29,8 +29,11 @@ public class SyncCreateSetCredentialsProvider { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library MessagingSettings messagingSettings = MessagingSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetEndpoint.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetEndpoint.golden index 45f567766d..8bc4e45e0b 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetEndpoint.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetEndpoint.golden @@ -28,8 +28,11 @@ public class SyncCreateSetEndpoint { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library MessagingSettings messagingSettings = MessagingSettings.newBuilder().setEndpoint(myEndpoint).build(); MessagingClient messagingClient = MessagingClient.create(messagingSettings); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurb.golden index 70e15ecc60..c641dd9272 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurb.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurb.golden @@ -29,8 +29,11 @@ public class SyncDeleteBlurb { } public static void syncDeleteBlurb() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { DeleteBlurbRequest request = DeleteBlurbRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbBlurbname.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbBlurbname.golden index 041312eb46..f6a585d8be 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbBlurbname.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbBlurbname.golden @@ -28,8 +28,11 @@ public class SyncDeleteBlurbBlurbname { } public static void syncDeleteBlurbBlurbname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { BlurbName name = BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]"); messagingClient.deleteBlurb(name); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbString.golden index 4d64e0889e..16378885d7 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbString.golden @@ -28,8 +28,11 @@ public class SyncDeleteBlurbString { } public static void syncDeleteBlurbString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { String name = BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoom.golden index 76dcad4782..23baa1c773 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoom.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoom.golden @@ -29,8 +29,11 @@ public class SyncDeleteRoom { } public static void syncDeleteRoom() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { DeleteRoomRequest request = DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomRoomname.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomRoomname.golden index 37658c32c6..91d32081b9 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomRoomname.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomRoomname.golden @@ -28,8 +28,11 @@ public class SyncDeleteRoomRoomname { } public static void syncDeleteRoomRoomname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { RoomName name = RoomName.of("[ROOM]"); messagingClient.deleteRoom(name); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomString.golden index 1e6ede1865..b9e4c5883d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomString.golden @@ -28,8 +28,11 @@ public class SyncDeleteRoomString { } public static void syncDeleteRoomString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { String name = RoomName.of("[ROOM]").toString(); messagingClient.deleteRoom(name); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurb.golden index 93d780d72a..0983642a83 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurb.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurb.golden @@ -29,8 +29,11 @@ public class SyncGetBlurb { } public static void syncGetBlurb() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { GetBlurbRequest request = GetBlurbRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbBlurbname.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbBlurbname.golden index 3a2d980e42..cf2f6fbacb 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbBlurbname.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbBlurbname.golden @@ -28,8 +28,11 @@ public class SyncGetBlurbBlurbname { } public static void syncGetBlurbBlurbname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { BlurbName name = BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]"); Blurb response = messagingClient.getBlurb(name); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbString.golden index e7d8f4cfc3..f82f4e7bc1 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbString.golden @@ -28,8 +28,11 @@ public class SyncGetBlurbString { } public static void syncGetBlurbString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { String name = BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoom.golden index 41c0ca166f..78b7d13b61 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoom.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoom.golden @@ -29,8 +29,11 @@ public class SyncGetRoom { } public static void syncGetRoom() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { GetRoomRequest request = GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomRoomname.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomRoomname.golden index f4485469ee..56da552417 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomRoomname.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomRoomname.golden @@ -28,8 +28,11 @@ public class SyncGetRoomRoomname { } public static void syncGetRoomRoomname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { RoomName name = RoomName.of("[ROOM]"); Room response = messagingClient.getRoom(name); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomString.golden index 469e674fcf..f35f28cc90 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomString.golden @@ -28,8 +28,11 @@ public class SyncGetRoomString { } public static void syncGetRoomString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { String name = RoomName.of("[ROOM]").toString(); Room response = messagingClient.getRoom(name); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbs.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbs.golden index be32bec612..cfc50e8565 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbs.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbs.golden @@ -29,8 +29,11 @@ public class SyncListBlurbs { } public static void syncListBlurbs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { ListBlurbsRequest request = ListBlurbsRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsProfilename.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsProfilename.golden index 9156c3e956..dfd515f13f 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsProfilename.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsProfilename.golden @@ -28,8 +28,11 @@ public class SyncListBlurbsProfilename { } public static void syncListBlurbsProfilename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { ProfileName parent = ProfileName.of("[USER]"); for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) { diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsRoomname.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsRoomname.golden index 1fed75fdfc..0272c5ea93 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsRoomname.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsRoomname.golden @@ -28,8 +28,11 @@ public class SyncListBlurbsRoomname { } public static void syncListBlurbsRoomname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { RoomName parent = RoomName.of("[ROOM]"); for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) { diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsString.golden index 8fe9080264..67d02e0c28 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsString.golden @@ -28,8 +28,11 @@ public class SyncListBlurbsString { } public static void syncListBlurbsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { String parent = ProfileName.of("[USER]").toString(); for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) { diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRooms.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRooms.golden index f3a8abc711..780a3fd213 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRooms.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRooms.golden @@ -28,8 +28,11 @@ public class SyncListRooms { } public static void syncListRooms() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { ListRoomsRequest request = ListRoomsRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbs.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbs.golden index a52299a511..76bd8b75b6 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbs.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbs.golden @@ -29,8 +29,11 @@ public class SyncSearchBlurbs { } public static void syncSearchBlurbs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { SearchBlurbsRequest request = SearchBlurbsRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbsString.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbsString.golden index 53366c2f0a..6ba0ae6e5a 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbsString.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbsString.golden @@ -27,8 +27,11 @@ public class SyncSearchBlurbsString { } public static void syncSearchBlurbsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { String query = "query107944136"; SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(query).get(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateBlurb.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateBlurb.golden index c13e6d97a8..eeaaa911d0 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateBlurb.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateBlurb.golden @@ -28,8 +28,11 @@ public class SyncUpdateBlurb { } public static void syncUpdateBlurb() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { UpdateBlurbRequest request = UpdateBlurbRequest.newBuilder().setBlurb(Blurb.newBuilder().build()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateRoom.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateRoom.golden index 66fb9b7c41..7999de51dc 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateRoom.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateRoom.golden @@ -28,8 +28,11 @@ public class SyncUpdateRoom { } public static void syncUpdateRoom() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (MessagingClient messagingClient = MessagingClient.create()) { UpdateRoomRequest request = UpdateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncEcho.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncEcho.golden index 4b4458d46c..9cbdba2f24 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncEcho.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncEcho.golden @@ -27,8 +27,11 @@ public class SyncEcho { } public static void syncEcho() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder(); echoSettingsBuilder .echoSettings() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncFastFibonacci.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncFastFibonacci.golden index 60745906df..325533a9b8 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncFastFibonacci.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncFastFibonacci.golden @@ -27,8 +27,11 @@ public class SyncFastFibonacci { } public static void syncFastFibonacci() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DeprecatedServiceSettings.Builder deprecatedServiceSettingsBuilder = DeprecatedServiceSettings.newBuilder(); deprecatedServiceSettingsBuilder diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncCreateTopic.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncCreateTopic.golden index 750f0115f6..0d33be22fe 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncCreateTopic.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncCreateTopic.golden @@ -27,8 +27,11 @@ public class SyncCreateTopic { } public static void syncCreateTopic() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library PublisherStubSettings.Builder publisherSettingsBuilder = PublisherStubSettings.newBuilder(); publisherSettingsBuilder .createTopicSettings() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncDeleteLog.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncDeleteLog.golden index b2bdd9b49d..bc1c42a9fd 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncDeleteLog.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncDeleteLog.golden @@ -27,8 +27,11 @@ public class SyncDeleteLog { } public static void syncDeleteLog() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library LoggingServiceV2StubSettings.Builder loggingServiceV2SettingsBuilder = LoggingServiceV2StubSettings.newBuilder(); loggingServiceV2SettingsBuilder diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncEcho.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncEcho.golden index fb15d47b6c..7a97d3f41b 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncEcho.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncEcho.golden @@ -27,8 +27,11 @@ public class SyncEcho { } public static void syncEcho() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library EchoStubSettings.Builder echoSettingsBuilder = EchoStubSettings.newBuilder(); echoSettingsBuilder .echoSettings() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncFastFibonacci.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncFastFibonacci.golden index 8a00e1431b..47814df155 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncFastFibonacci.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncFastFibonacci.golden @@ -27,8 +27,11 @@ public class SyncFastFibonacci { } public static void syncFastFibonacci() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DeprecatedServiceStubSettings.Builder deprecatedServiceSettingsBuilder = DeprecatedServiceStubSettings.newBuilder(); deprecatedServiceSettingsBuilder diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoClient.golden index 00e33df2b6..5e38c6d146 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoClient.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoClient.golden @@ -33,8 +33,11 @@ import javax.annotation.Generated; * that map to API methods. Sample code to get started: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoResponse response = echoClient.echo(); * } @@ -69,8 +72,11 @@ import javax.annotation.Generated; *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * EchoSettings echoSettings = * EchoSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -81,8 +87,11 @@ import javax.annotation.Generated; *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * EchoSettings echoSettings = EchoSettings.newBuilder().setEndpoint(myEndpoint).build(); * EchoClient echoClient = EchoClient.create(echoSettings); * }@@ -91,8 +100,11 @@ import javax.annotation.Generated; * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * EchoSettings echoSettings = * EchoSettings.newBuilder() * .setTransportChannelProvider( @@ -182,8 +194,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoResponse response = echoClient.echo(); * } @@ -202,8 +217,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * ResourceName parent = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]"); * EchoResponse response = echoClient.echo(parent); @@ -224,8 +242,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * Status error = Status.newBuilder().build(); * EchoResponse response = echoClient.echo(error); @@ -245,8 +266,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * FoobarName name = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]"); * EchoResponse response = echoClient.echo(name); @@ -267,8 +291,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * String content = "content951530617"; * EchoResponse response = echoClient.echo(content); @@ -288,8 +315,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * String name = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString(); * EchoResponse response = echoClient.echo(name); @@ -309,8 +339,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * String parent = FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString(); * EchoResponse response = echoClient.echo(parent); @@ -330,8 +363,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * String content = "content951530617"; * Severity severity = Severity.forNumber(0); @@ -354,8 +390,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoRequest request = * EchoRequest.newBuilder() @@ -380,8 +419,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoRequest request = * EchoRequest.newBuilder() @@ -405,8 +447,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * ExpandRequest request = * ExpandRequest.newBuilder() @@ -429,8 +474,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * PagedExpandRequest request = * PagedExpandRequest.newBuilder() @@ -456,8 +504,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * PagedExpandRequest request = * PagedExpandRequest.newBuilder() @@ -483,8 +534,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * PagedExpandRequest request = * PagedExpandRequest.newBuilder() @@ -516,8 +570,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * for (EchoResponse element : echoClient.simplePagedExpand().iterateAll()) { * // doThingsWith(element); @@ -538,8 +595,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * PagedExpandRequest request = * PagedExpandRequest.newBuilder() @@ -565,8 +625,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * PagedExpandRequest request = * PagedExpandRequest.newBuilder() @@ -593,8 +656,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * PagedExpandRequest request = * PagedExpandRequest.newBuilder() @@ -626,8 +692,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * Duration ttl = Duration.newBuilder().build(); * WaitResponse response = echoClient.waitAsync(ttl).get(); @@ -647,8 +716,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * Timestamp endTime = Timestamp.newBuilder().build(); * WaitResponse response = echoClient.waitAsync(endTime).get(); @@ -668,8 +740,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * WaitRequest request = WaitRequest.newBuilder().build(); * WaitResponse response = echoClient.waitAsync(request).get(); @@ -688,8 +763,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * WaitRequest request = WaitRequest.newBuilder().build(); * OperationFuturefuture = @@ -708,8 +786,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * WaitRequest request = WaitRequest.newBuilder().build(); * ApiFuturefuture = echoClient.waitCallable().futureCall(request); @@ -727,8 +808,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * BlockRequest request = BlockRequest.newBuilder().build(); * BlockResponse response = echoClient.block(request); @@ -747,8 +831,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * BlockRequest request = BlockRequest.newBuilder().build(); * ApiFuturefuture = echoClient.blockCallable().futureCall(request); @@ -766,8 +853,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoRequest request = * EchoRequest.newBuilder() @@ -792,8 +882,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoRequest request = * EchoRequest.newBuilder() @@ -817,8 +910,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoRequest request = * EchoRequest.newBuilder() @@ -843,8 +939,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoRequest request = * EchoRequest.newBuilder() @@ -868,8 +967,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * BidiStreambidiStream = echoClient.chatCallable().call(); * EchoRequest request = @@ -895,8 +997,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * * {@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoRequest request = * EchoRequest.newBuilder() @@ -921,8 +1026,11 @@ public class EchoClient implements BackgroundResource { * Sample code: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * EchoRequest request = * EchoRequest.newBuilder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoEmpty.golden b/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoEmpty.golden index b010e5c9bd..0165872e80 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoEmpty.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoEmpty.golden @@ -14,8 +14,11 @@ import javax.annotation.Generated; * that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoEmpyClient echoEmpyClient = EchoEmpyClient.create()) {} * }* @@ -48,8 +51,11 @@ import javax.annotation.Generated; *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * EchoEmpySettings echoEmpySettings = * EchoEmpySettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -60,8 +66,11 @@ import javax.annotation.Generated; *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * EchoEmpySettings echoEmpySettings = * EchoEmpySettings.newBuilder().setEndpoint(myEndpoint).build(); * EchoEmpyClient echoEmpyClient = EchoEmpyClient.create(echoEmpySettings); @@ -71,8 +80,11 @@ import javax.annotation.Generated; * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * EchoEmpySettings echoEmpySettings = * EchoEmpySettings.newBuilder() * .setTransportChannelProvider( diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden index 4c175371d4..9c51589512 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden @@ -43,8 +43,11 @@ import javax.annotation.Generated; *For example, to set the total timeout of echo to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder(); * echoSettingsBuilder * .echoSettings() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden index 5e787650ed..bc6b181db1 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden @@ -73,8 +73,11 @@ import org.threeten.bp.Duration; *For example, to set the total timeout of echo to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * EchoStubSettings.Builder echoSettingsBuilder = EchoStubSettings.newBuilder(); * echoSettingsBuilder * .echoSettings() diff --git a/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden index 6660e07be5..afa6402beb 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden @@ -34,8 +34,11 @@ import javax.annotation.Generated; *For example, to set the total timeout of repeatDataBody to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ComplianceSettings.Builder complianceSettingsBuilder = ComplianceSettings.newBuilder(); * complianceSettingsBuilder * .repeatDataBodySettings() diff --git a/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden b/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden index 1709498e09..f124efd10d 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden @@ -43,8 +43,11 @@ import javax.annotation.Generated; *For example, to set the total timeout of repeatDataBody to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ComplianceStubSettings.Builder complianceSettingsBuilder = ComplianceStubSettings.newBuilder(); * complianceSettingsBuilder * .repeatDataBodySettings() diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java index 21012be3c5..679b7684a8 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java +++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleCodeWriterTest.java @@ -107,8 +107,11 @@ public void writeInlineSample() { String result = SampleCodeWriter.writeInlineSample(testingSampleStatements); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", + "// This snippet has been automatically generated and should be regarded as a code template only.\n", + "// It will require modifications to work:\n", + "// - It may require correct/in-range values for request initialization.\n", + "// - It may require specifying regional endpoints when creating the service client as shown in\n", + "// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library\n", "ClientSettings clientSettings = ClientSettings.newBuilder().build();\n", "try (boolean aBool = false) {\n", " int x = 3;\n", @@ -139,8 +142,11 @@ public void writeExecutableSample() { " }\n", "\n", " public static void syncWriteExecutableSample() throws Exception {\n", - " // This snippet has been automatically generated for illustrative purposes only.\n", - " // It may require modifications to work in your environment.\n", + " // This snippet has been automatically generated and should be regarded as a code template only.\n", + " // It will require modifications to work:\n", + " // - It may require correct/in-range values for request initialization.\n", + " // - It may require specifying regional endpoints when creating the service client as shown in\n", + " // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library\n", " ClientSettings clientSettings = ClientSettings.newBuilder().build();\n", " try (boolean aBool = false) {\n", " int x = 3;\n", diff --git a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java index d5e895e115..99aea60849 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java +++ b/src/test/java/com/google/api/generator/gapic/composer/samplecode/SampleComposerTest.java @@ -49,8 +49,11 @@ public void createInlineSample() { String sampleResult = writeSample(SampleComposer.composeInlineSample(sampleBody)); String expected = LineFormatter.lines( - "// This snippet has been automatically generated for illustrative purposes only.\n", - "// It may require modifications to work in your environment.\n", + "// This snippet has been automatically generated and should be regarded as a code template only.\n", + "// It will require modifications to work:\n", + "// - It may require correct/in-range values for request initialization.\n", + "// - It may require specifying regional endpoints when creating the service client as shown in\n", + "// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library\n", "System.out.println(\"testing\");"); assertEquals(expected, sampleResult); @@ -80,8 +83,11 @@ public void createExecutableSampleEmptyStatementSample() { " }\n", "\n", " public static void syncCreateExecutableSampleEmptyStatementSample() throws Exception {\n", - " // This snippet has been automatically generated for illustrative purposes only.\n", - " // It may require modifications to work in your environment.\n", + " // This snippet has been automatically generated and should be regarded as a code template only.\n", + " // It will require modifications to work:\n", + " // - It may require correct/in-range values for request initialization.\n", + " // - It may require specifying regional endpoints when creating the service client as shown in\n", + " // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library\n", " }\n", "}\n", "// [END apiname_generated_echo_createexecutablesample_emptystatementsample_sync]\n"); @@ -116,8 +122,11 @@ public void createExecutableSampleMethodArgsNoVar() { " }\n", "\n", " public static void syncCreateExecutableSampleMethodArgsNoVar() throws Exception {\n", - " // This snippet has been automatically generated for illustrative purposes only.\n", - " // It may require modifications to work in your environment.\n", + " // This snippet has been automatically generated and should be regarded as a code template only.\n", + " // It will require modifications to work:\n", + " // - It may require correct/in-range values for request initialization.\n", + " // - It may require specifying regional endpoints when creating the service client as shown in\n", + " // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library\n", " System.out.println(\"Testing CreateExecutableSampleMethodArgsNoVar\");\n", " }\n", "}\n", @@ -162,8 +171,11 @@ public void createExecutableSampleMethod() { " }\n", "\n", " public static void syncCreateExecutableSample(String content) throws Exception {\n", - " // This snippet has been automatically generated for illustrative purposes only.\n", - " // It may require modifications to work in your environment.\n", + " // This snippet has been automatically generated and should be regarded as a code template only.\n", + " // It will require modifications to work:\n", + " // - It may require correct/in-range values for request initialization.\n", + " // - It may require specifying regional endpoints when creating the service client as shown in\n", + " // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library\n", " System.out.println(content);\n", " }\n", "}\n", @@ -248,8 +260,11 @@ public void createExecutableSampleMethodMultipleStatements() { "\n", " public static void syncCreateExecutableSampleMethodMultipleStatements(\n", " String content, int num, Object thing) throws Exception {\n", - " // This snippet has been automatically generated for illustrative purposes only.\n", - " // It may require modifications to work in your environment.\n", + " // This snippet has been automatically generated and should be regarded as a code template only.\n", + " // It will require modifications to work:\n", + " // - It may require correct/in-range values for request initialization.\n", + " // - It may require specifying regional endpoints when creating the service client as shown in\n", + " // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library\n", " System.out.println(content);\n", " System.out.println(num);\n", " System.out.println(thing.response());\n", diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java index 7fb350edfb..61b2792c71 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAnalyzeIamPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { AnalyzeIamPolicyRequest request = AnalyzeIamPolicyRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java index a157a49163..bdb37c4140 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncAnalyzeIamPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { AnalyzeIamPolicyRequest request = AnalyzeIamPolicyRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java index d3b7143ebc..089103aabe 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAnalyzeIamPolicyLongrunning() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { AnalyzeIamPolicyLongrunningRequest request = AnalyzeIamPolicyLongrunningRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java index fc6d179624..c2848431bf 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAnalyzeIamPolicyLongrunningLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { AnalyzeIamPolicyLongrunningRequest request = AnalyzeIamPolicyLongrunningRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java index 7b0aa38840..d180965d79 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncAnalyzeIamPolicyLongrunning() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { AnalyzeIamPolicyLongrunningRequest request = AnalyzeIamPolicyLongrunningRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java index 5ff6e4af46..0bccc2c63b 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAnalyzeMove() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { AnalyzeMoveRequest request = AnalyzeMoveRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java index ee4c6de6a3..dd975540ee 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncAnalyzeMove() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { AnalyzeMoveRequest request = AnalyzeMoveRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java index 9ce64bda8f..8748ef9d6d 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchGetAssetsHistory() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { BatchGetAssetsHistoryRequest request = BatchGetAssetsHistoryRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java index 1f2546c781..cfb9e75eaa 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchGetAssetsHistory() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { BatchGetAssetsHistoryRequest request = BatchGetAssetsHistoryRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java index 70b2503fb4..913a1c1c0d 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library AssetServiceSettings assetServiceSettings = AssetServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java index 73e93fda06..fa2c2a4b4e 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library AssetServiceSettings assetServiceSettings = AssetServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings); diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java index d9c447036d..060c56a764 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateFeed() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { CreateFeedRequest request = CreateFeedRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java index 1325bacda8..fea0a079f6 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateFeed() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { CreateFeedRequest request = CreateFeedRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java index e02c8fa458..66eddd4c27 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateFeedString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { String parent = "parent-995424086"; Feed response = assetServiceClient.createFeed(parent); diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java index e279683025..cc5bdb96e8 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteFeed() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { DeleteFeedRequest request = DeleteFeedRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java index a9ec6bfe46..1786f511b9 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteFeed() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { DeleteFeedRequest request = DeleteFeedRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java index 11d453448e..b16984b667 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteFeedFeedname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { FeedName name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]"); assetServiceClient.deleteFeed(name); diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java index 2477cd5548..0ec0024d65 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteFeedString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { String name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString(); assetServiceClient.deleteFeed(name); diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java index 5db1eb8fe5..052bfdc1c8 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java @@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception { } public static void asyncExportAssets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { ExportAssetsRequest request = ExportAssetsRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsLRO.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsLRO.java index bb0e40bb9a..c136521b17 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsLRO.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsLRO.java @@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception { } public static void asyncExportAssetsLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { ExportAssetsRequest request = ExportAssetsRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java index 2f5a8d6228..599bfc76de 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void syncExportAssets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { ExportAssetsRequest request = ExportAssetsRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java index d4599664a9..40de97de9e 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetFeed() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { GetFeedRequest request = GetFeedRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java index 528af4aecb..0490c1c1ea 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFeed() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { GetFeedRequest request = GetFeedRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java index 1a690bf442..f697ff3f5b 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFeedFeedname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { FeedName name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]"); Feed response = assetServiceClient.getFeed(name); diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java index 5a9974201f..9e750f6c08 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFeedString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { String name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString(); Feed response = assetServiceClient.getFeed(name); diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssets.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssets.java index 8ffa2f0d29..785a9297d5 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssets.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssets.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListAssets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { ListAssetsRequest request = ListAssetsRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java index 5f4fef0b04..4c1b35e2b0 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java @@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListAssetsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { ListAssetsRequest request = ListAssetsRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java index ae28e2b1d7..0d05589a3b 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAssets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { ListAssetsRequest request = ListAssetsRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java index 4f7f81821d..7943dc999d 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAssetsResourcename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { ResourceName parent = new ResourceName() { diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java index b8ef3a25f7..ddc3aa7ea5 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAssetsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { String parent = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString(); for (Asset element : assetServiceClient.listAssets(parent).iterateAll()) { diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java index 572fd6c164..3e47fc647d 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFeeds() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { ListFeedsRequest request = ListFeedsRequest.newBuilder().setParent("parent-995424086").build(); diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java index a53be62fe1..8bff72705d 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFeeds() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { ListFeedsRequest request = ListFeedsRequest.newBuilder().setParent("parent-995424086").build(); diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java index a5f1a7afd0..3d6a842eeb 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFeedsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { String parent = "parent-995424086"; ListFeedsResponse response = assetServiceClient.listFeeds(parent); diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java index d45ededa0f..7e7a38c530 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchAllIamPolicies() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { SearchAllIamPoliciesRequest request = SearchAllIamPoliciesRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java index eee7d0b8ed..4de6b3f53a 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchAllIamPoliciesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { SearchAllIamPoliciesRequest request = SearchAllIamPoliciesRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java index e2435d6d3a..50ee2ef294 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchAllIamPolicies() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { SearchAllIamPoliciesRequest request = SearchAllIamPoliciesRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java index 0cccfb6e15..2704f9be42 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchAllIamPoliciesStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { String scope = "scope109264468"; String query = "query107944136"; diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResources.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResources.java index 9f0cec76cd..5d8a22c234 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResources.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResources.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchAllResources() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { SearchAllResourcesRequest request = SearchAllResourcesRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java index ad668a9dad..c025ac210b 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchAllResourcesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { SearchAllResourcesRequest request = SearchAllResourcesRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java index cff5d56c66..5aeb9954d7 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchAllResources() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { SearchAllResourcesRequest request = SearchAllResourcesRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java index aa23171f38..7e87019e5d 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchAllResourcesStringStringListstring() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { String scope = "scope109264468"; String query = "query107944136"; diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java index b114d7831b..4239ca9a66 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateFeed() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { UpdateFeedRequest request = UpdateFeedRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java index 76211f58e9..691eb8a262 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateFeed() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { UpdateFeedRequest request = UpdateFeedRequest.newBuilder() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java index a3b8464116..dd9bbaba40 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateFeedFeed() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { Feed feed = Feed.newBuilder().build(); Feed response = assetServiceClient.updateFeed(feed); diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java index b405d726e7..d7822c14a4 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchGetAssetsHistory() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library AssetServiceSettings.Builder assetServiceSettingsBuilder = AssetServiceSettings.newBuilder(); assetServiceSettingsBuilder .batchGetAssetsHistorySettings() diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java index f6e4d0f476..2458f13c31 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchGetAssetsHistory() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library AssetServiceStubSettings.Builder assetServiceSettingsBuilder = AssetServiceStubSettings.newBuilder(); assetServiceSettingsBuilder diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java index b62cab9a91..ec0e81a812 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java @@ -46,8 +46,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * BatchGetAssetsHistoryRequest request = * BatchGetAssetsHistoryRequest.newBuilder() @@ -90,8 +93,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * AssetServiceSettings assetServiceSettings = * AssetServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -102,8 +108,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * AssetServiceSettings assetServiceSettings = * AssetServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * AssetServiceClient assetServiceClient = AssetServiceClient.create(assetServiceSettings); @@ -185,8 +194,11 @@ public final OperationsClient getOperationsClient() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * ExportAssetsRequest request = * ExportAssetsRequest.newBuilder() @@ -223,8 +235,11 @@ public final OperationFutureexportAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * ExportAssetsRequest request = * ExportAssetsRequest.newBuilder() @@ -261,8 +276,11 @@ public final OperationFutureexportAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * ExportAssetsRequest request = * ExportAssetsRequest.newBuilder() @@ -290,8 +308,11 @@ public final UnaryCallableexportAssetsCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * ResourceName parent = * new ResourceName() { @@ -337,8 +358,11 @@ public final ListAssetsPagedResponse listAssets(ResourceName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * String parent = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString(); * for (Asset element : assetServiceClient.listAssets(parent).iterateAll()) { @@ -365,8 +389,11 @@ public final ListAssetsPagedResponse listAssets(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * ListAssetsRequest request = * ListAssetsRequest.newBuilder() @@ -398,8 +425,11 @@ public final ListAssetsPagedResponse listAssets(ListAssetsRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * ListAssetsRequest request = * ListAssetsRequest.newBuilder() @@ -430,8 +460,11 @@ public final UnaryCallablelistAsset * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * ListAssetsRequest request = * ListAssetsRequest.newBuilder() @@ -473,8 +506,11 @@ public final UnaryCallablelistAssetsCall * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * BatchGetAssetsHistoryRequest request = * BatchGetAssetsHistoryRequest.newBuilder() @@ -507,8 +543,11 @@ public final BatchGetAssetsHistoryResponse batchGetAssetsHistory( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * BatchGetAssetsHistoryRequest request = * BatchGetAssetsHistoryRequest.newBuilder() @@ -537,8 +576,11 @@ public final BatchGetAssetsHistoryResponse batchGetAssetsHistory( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * String parent = "parent-995424086"; * Feed response = assetServiceClient.createFeed(parent); @@ -563,8 +605,11 @@ public final Feed createFeed(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * CreateFeedRequest request = * CreateFeedRequest.newBuilder() @@ -590,8 +635,11 @@ public final Feed createFeed(CreateFeedRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * CreateFeedRequest request = * CreateFeedRequest.newBuilder() @@ -616,8 +664,11 @@ public final UnaryCallablecreateFeedCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * FeedName name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]"); * Feed response = assetServiceClient.getFeed(name); @@ -642,8 +693,11 @@ public final Feed getFeed(FeedName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * String name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString(); * Feed response = assetServiceClient.getFeed(name); @@ -667,8 +721,11 @@ public final Feed getFeed(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * GetFeedRequest request = * GetFeedRequest.newBuilder() @@ -692,8 +749,11 @@ public final Feed getFeed(GetFeedRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * GetFeedRequest request = * GetFeedRequest.newBuilder() @@ -716,8 +776,11 @@ public final UnaryCallablegetFeedCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * String parent = "parent-995424086"; * ListFeedsResponse response = assetServiceClient.listFeeds(parent); @@ -741,8 +804,11 @@ public final ListFeedsResponse listFeeds(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * ListFeedsRequest request = * ListFeedsRequest.newBuilder().setParent("parent-995424086").build(); @@ -764,8 +830,11 @@ public final ListFeedsResponse listFeeds(ListFeedsRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * ListFeedsRequest request = * ListFeedsRequest.newBuilder().setParent("parent-995424086").build(); @@ -787,8 +856,11 @@ public final UnaryCallablelistFeedsCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * Feed feed = Feed.newBuilder().build(); * Feed response = assetServiceClient.updateFeed(feed); @@ -812,8 +884,11 @@ public final Feed updateFeed(Feed feed) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * UpdateFeedRequest request = * UpdateFeedRequest.newBuilder() @@ -838,8 +913,11 @@ public final Feed updateFeed(UpdateFeedRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * UpdateFeedRequest request = * UpdateFeedRequest.newBuilder() @@ -863,8 +941,11 @@ public final UnaryCallableupdateFeedCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * FeedName name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]"); * assetServiceClient.deleteFeed(name); @@ -889,8 +970,11 @@ public final void deleteFeed(FeedName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * String name = FeedName.ofProjectFeedName("[PROJECT]", "[FEED]").toString(); * assetServiceClient.deleteFeed(name); @@ -914,8 +998,11 @@ public final void deleteFeed(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * DeleteFeedRequest request = * DeleteFeedRequest.newBuilder() @@ -939,8 +1026,11 @@ public final void deleteFeed(DeleteFeedRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * DeleteFeedRequest request = * DeleteFeedRequest.newBuilder() @@ -965,8 +1055,11 @@ public final UnaryCallabledeleteFeedCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * String scope = "scope109264468"; * String query = "query107944136"; @@ -1061,8 +1154,11 @@ public final SearchAllResourcesPagedResponse searchAllResources( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * SearchAllResourcesRequest request = * SearchAllResourcesRequest.newBuilder() @@ -1098,8 +1194,11 @@ public final SearchAllResourcesPagedResponse searchAllResources( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * SearchAllResourcesRequest request = * SearchAllResourcesRequest.newBuilder() @@ -1134,8 +1233,11 @@ public final SearchAllResourcesPagedResponse searchAllResources( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * SearchAllResourcesRequest request = * SearchAllResourcesRequest.newBuilder() @@ -1177,8 +1279,11 @@ public final SearchAllResourcesPagedResponse searchAllResources( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * String scope = "scope109264468"; * String query = "query107944136"; @@ -1255,8 +1360,11 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies(String scope *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * SearchAllIamPoliciesRequest request = * SearchAllIamPoliciesRequest.newBuilder() @@ -1291,8 +1399,11 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * SearchAllIamPoliciesRequest request = * SearchAllIamPoliciesRequest.newBuilder() @@ -1326,8 +1437,11 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * SearchAllIamPoliciesRequest request = * SearchAllIamPoliciesRequest.newBuilder() @@ -1366,8 +1480,11 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * AnalyzeIamPolicyRequest request = * AnalyzeIamPolicyRequest.newBuilder() @@ -1392,8 +1509,11 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * AnalyzeIamPolicyRequest request = * AnalyzeIamPolicyRequest.newBuilder() @@ -1426,8 +1546,11 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * AnalyzeIamPolicyLongrunningRequest request = * AnalyzeIamPolicyLongrunningRequest.newBuilder() @@ -1462,8 +1585,11 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * AnalyzeIamPolicyLongrunningRequest request = * AnalyzeIamPolicyLongrunningRequest.newBuilder() @@ -1500,8 +1626,11 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * AnalyzeIamPolicyLongrunningRequest request = * AnalyzeIamPolicyLongrunningRequest.newBuilder() @@ -1530,8 +1659,11 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * AnalyzeMoveRequest request = * AnalyzeMoveRequest.newBuilder() @@ -1559,8 +1691,11 @@ public final AnalyzeMoveResponse analyzeMove(AnalyzeMoveRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * AnalyzeMoveRequest request = * AnalyzeMoveRequest.newBuilder() diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java index 24fe05b9e5..3fb0d9dd35 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java @@ -58,8 +58,11 @@ *For example, to set the total timeout of batchGetAssetsHistory to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * AssetServiceSettings.Builder assetServiceSettingsBuilder = AssetServiceSettings.newBuilder(); * assetServiceSettingsBuilder * .batchGetAssetsHistorySettings() diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/package-info.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/package-info.java index 0eb5fe6c9d..7ac072c156 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/package-info.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/package-info.java @@ -24,8 +24,11 @@ *Sample for AssetServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) { * BatchGetAssetsHistoryRequest request = * BatchGetAssetsHistoryRequest.newBuilder() diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java index a2c2b821cd..8c27a3bafa 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java @@ -102,8 +102,11 @@ *