diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 62592923..2c3ef720 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93 + digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 + diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index 139610f7..564021d8 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -28,7 +28,7 @@ fi pushd $(dirname "$0")/../../ # install docuploader package -python3 -m pip install gcp-docuploader +python3 -m pip install --require-hashes -r .kokoro/requirements.txt # compile all packages mvn clean install -B -q -DskipTests=true diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index e181685c..b02c53d9 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -28,7 +28,7 @@ fi pushd $(dirname "$0")/../../ # install docuploader package -python3 -m pip install gcp-docuploader +python3 -m pip install --require-hashes -r .kokoro/requirements.txt # compile all packages mvn clean install -B -q -DskipTests=true diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh index 1dba8de1..61e714d6 100755 --- a/.kokoro/release/stage.sh +++ b/.kokoro/release/stage.sh @@ -16,7 +16,8 @@ set -eo pipefail # Start the releasetool reporter -python3 -m pip install gcp-releasetool +requirementsFile=$(realpath $(dirname "${BASH_SOURCE[0]}")/../requirements.txt) +python3 -m pip install --require-hashes -r $requirementsFile python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script source $(dirname "$0")/common.sh diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in new file mode 100644 index 00000000..cfdc2e7e --- /dev/null +++ b/.kokoro/requirements.in @@ -0,0 +1,31 @@ +gcp-docuploader==0.6.3 +google-crc32c==1.3.0 +googleapis-common-protos==1.56.3 +gcp-releasetool==1.8.7 +cachetools==4.2.4 +cffi==1.15.1 +jeepney==0.7.1 +jinja2==3.0.3 +markupsafe==2.0.1 +keyring==23.4.1 +packaging==21.3 +protobuf==3.19.5 +pyjwt==2.4.0 +pyparsing==3.0.9 +pycparser==2.21 +pyperclip==1.8.2 +python-dateutil==2.8.2 +requests==2.27.1 +importlib-metadata==4.8.3 +zipp==3.6.0 +google_api_core==2.8.2 +google-cloud-storage==2.0.0 +google-cloud-core==2.3.1 +typing-extensions==4.1.1 +urllib3==1.26.12 +zipp==3.6.0 +rsa==4.9 +six==1.16.0 +attrs==22.1.0 +google-auth==2.11.0 +idna==3.4 \ No newline at end of file diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt new file mode 100644 index 00000000..170f1c63 --- /dev/null +++ b/.kokoro/requirements.txt @@ -0,0 +1,452 @@ +# +# This file is autogenerated by pip-compile with python 3.10 +# To update, run: +# +# pip-compile --allow-unsafe --generate-hashes requirements.in +# +attrs==22.1.0 \ + --hash=sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \ + --hash=sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c + # via + # -r requirements.in + # gcp-releasetool +cachetools==4.2.4 \ + --hash=sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693 \ + --hash=sha256:92971d3cb7d2a97efff7c7bb1657f21a8f5fb309a37530537c71b1774189f2d1 + # via + # -r requirements.in + # google-auth +certifi==2022.9.14 \ + --hash=sha256:36973885b9542e6bd01dea287b2b4b3b21236307c56324fcc3f1160f2d655ed5 \ + --hash=sha256:e232343de1ab72c2aa521b625c80f699e356830fd0e2c620b465b304b17b0516 + # via requests +cffi==1.15.1 \ + --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ + --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ + --hash=sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104 \ + --hash=sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426 \ + --hash=sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405 \ + --hash=sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375 \ + --hash=sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a \ + --hash=sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e \ + --hash=sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc \ + --hash=sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf \ + --hash=sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185 \ + --hash=sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497 \ + --hash=sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3 \ + --hash=sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35 \ + --hash=sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c \ + --hash=sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83 \ + --hash=sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21 \ + --hash=sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca \ + --hash=sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984 \ + --hash=sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac \ + --hash=sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd \ + --hash=sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee \ + --hash=sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a \ + --hash=sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2 \ + --hash=sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192 \ + --hash=sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7 \ + --hash=sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585 \ + --hash=sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f \ + --hash=sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e \ + --hash=sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27 \ + --hash=sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b \ + --hash=sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e \ + --hash=sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e \ + --hash=sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d \ + --hash=sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c \ + --hash=sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415 \ + --hash=sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82 \ + --hash=sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02 \ + --hash=sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314 \ + --hash=sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325 \ + --hash=sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c \ + --hash=sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3 \ + --hash=sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914 \ + --hash=sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045 \ + --hash=sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d \ + --hash=sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9 \ + --hash=sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5 \ + --hash=sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2 \ + --hash=sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c \ + --hash=sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3 \ + --hash=sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2 \ + --hash=sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8 \ + --hash=sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d \ + --hash=sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d \ + --hash=sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9 \ + --hash=sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162 \ + --hash=sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76 \ + --hash=sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4 \ + --hash=sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e \ + --hash=sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9 \ + --hash=sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6 \ + --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b \ + --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \ + --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0 + # via + # -r requirements.in + # cryptography +charset-normalizer==2.0.12 \ + --hash=sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597 \ + --hash=sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df + # via requests +click==8.0.4 \ + --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ + --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb + # via + # gcp-docuploader + # gcp-releasetool +colorlog==6.7.0 \ + --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ + --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 + # via gcp-docuploader +cryptography==38.0.1 \ + --hash=sha256:0297ffc478bdd237f5ca3a7dc96fc0d315670bfa099c04dc3a4a2172008a405a \ + --hash=sha256:10d1f29d6292fc95acb597bacefd5b9e812099d75a6469004fd38ba5471a977f \ + --hash=sha256:16fa61e7481f4b77ef53991075de29fc5bacb582a1244046d2e8b4bb72ef66d0 \ + --hash=sha256:194044c6b89a2f9f169df475cc167f6157eb9151cc69af8a2a163481d45cc407 \ + --hash=sha256:1db3d807a14931fa317f96435695d9ec386be7b84b618cc61cfa5d08b0ae33d7 \ + --hash=sha256:3261725c0ef84e7592597606f6583385fed2a5ec3909f43bc475ade9729a41d6 \ + --hash=sha256:3b72c360427889b40f36dc214630e688c2fe03e16c162ef0aa41da7ab1455153 \ + --hash=sha256:3e3a2599e640927089f932295a9a247fc40a5bdf69b0484532f530471a382750 \ + --hash=sha256:3fc26e22840b77326a764ceb5f02ca2d342305fba08f002a8c1f139540cdfaad \ + --hash=sha256:5067ee7f2bce36b11d0e334abcd1ccf8c541fc0bbdaf57cdd511fdee53e879b6 \ + --hash=sha256:52e7bee800ec869b4031093875279f1ff2ed12c1e2f74923e8f49c916afd1d3b \ + --hash=sha256:64760ba5331e3f1794d0bcaabc0d0c39e8c60bf67d09c93dc0e54189dfd7cfe5 \ + --hash=sha256:765fa194a0f3372d83005ab83ab35d7c5526c4e22951e46059b8ac678b44fa5a \ + --hash=sha256:79473cf8a5cbc471979bd9378c9f425384980fcf2ab6534b18ed7d0d9843987d \ + --hash=sha256:896dd3a66959d3a5ddcfc140a53391f69ff1e8f25d93f0e2e7830c6de90ceb9d \ + --hash=sha256:89ed49784ba88c221756ff4d4755dbc03b3c8d2c5103f6d6b4f83a0fb1e85294 \ + --hash=sha256:ac7e48f7e7261207d750fa7e55eac2d45f720027d5703cd9007e9b37bbb59ac0 \ + --hash=sha256:ad7353f6ddf285aeadfaf79e5a6829110106ff8189391704c1d8801aa0bae45a \ + --hash=sha256:b0163a849b6f315bf52815e238bc2b2346604413fa7c1601eea84bcddb5fb9ac \ + --hash=sha256:b6c9b706316d7b5a137c35e14f4103e2115b088c412140fdbd5f87c73284df61 \ + --hash=sha256:c2e5856248a416767322c8668ef1845ad46ee62629266f84a8f007a317141013 \ + --hash=sha256:ca9f6784ea96b55ff41708b92c3f6aeaebde4c560308e5fbbd3173fbc466e94e \ + --hash=sha256:d1a5bd52d684e49a36582193e0b89ff267704cd4025abefb9e26803adeb3e5fb \ + --hash=sha256:d3971e2749a723e9084dd507584e2a2761f78ad2c638aa31e80bc7a15c9db4f9 \ + --hash=sha256:d4ef6cc305394ed669d4d9eebf10d3a101059bdcf2669c366ec1d14e4fb227bd \ + --hash=sha256:d9e69ae01f99abe6ad646947bba8941e896cb3aa805be2597a0400e0764b5818 + # via + # gcp-releasetool + # secretstorage +gcp-docuploader==0.6.3 \ + --hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \ + --hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b + # via -r requirements.in +gcp-releasetool==1.8.7 \ + --hash=sha256:3d2a67c9db39322194afb3b427e9cb0476ce8f2a04033695f0aeb63979fc2b37 \ + --hash=sha256:5e4d28f66e90780d77f3ecf1e9155852b0c3b13cbccb08ab07e66b2357c8da8d + # via -r requirements.in +google-api-core==2.8.2 \ + --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ + --hash=sha256:93c6a91ccac79079ac6bbf8b74ee75db970cc899278b97d53bc012f35908cf50 + # via + # -r requirements.in + # google-cloud-core + # google-cloud-storage +google-auth==2.11.0 \ + --hash=sha256:be62acaae38d0049c21ca90f27a23847245c9f161ff54ede13af2cb6afecbac9 \ + --hash=sha256:ed65ecf9f681832298e29328e1ef0a3676e3732b2e56f41532d45f70a22de0fb + # via + # -r requirements.in + # gcp-releasetool + # google-api-core + # google-cloud-core + # google-cloud-storage +google-cloud-core==2.3.1 \ + --hash=sha256:113ba4f492467d5bd442c8d724c1a25ad7384045c3178369038840ecdd19346c \ + --hash=sha256:34334359cb04187bdc80ddcf613e462dfd7a3aabbc3fe4d118517ab4b9303d53 + # via + # -r requirements.in + # google-cloud-storage +google-cloud-storage==2.0.0 \ + --hash=sha256:a57a15aead0f9dfbd4381f1bfdbe8bf89818a4bd75bab846cafcefb2db846c47 \ + --hash=sha256:ec4be60bb223a3a960f0d01697d849b86d91cad815a84915a32ed3635e93a5e7 + # via + # -r requirements.in + # gcp-docuploader +google-crc32c==1.3.0 \ + --hash=sha256:04e7c220798a72fd0f08242bc8d7a05986b2a08a0573396187fd32c1dcdd58b3 \ + --hash=sha256:05340b60bf05b574159e9bd940152a47d38af3fb43803ffe71f11d704b7696a6 \ + --hash=sha256:12674a4c3b56b706153a358eaa1018c4137a5a04635b92b4652440d3d7386206 \ + --hash=sha256:127f9cc3ac41b6a859bd9dc4321097b1a4f6aa7fdf71b4f9227b9e3ebffb4422 \ + --hash=sha256:13af315c3a0eec8bb8b8d80b8b128cb3fcd17d7e4edafc39647846345a3f003a \ + --hash=sha256:1926fd8de0acb9d15ee757175ce7242e235482a783cd4ec711cc999fc103c24e \ + --hash=sha256:226f2f9b8e128a6ca6a9af9b9e8384f7b53a801907425c9a292553a3a7218ce0 \ + --hash=sha256:276de6273eb074a35bc598f8efbc00c7869c5cf2e29c90748fccc8c898c244df \ + --hash=sha256:318f73f5484b5671f0c7f5f63741ab020a599504ed81d209b5c7129ee4667407 \ + --hash=sha256:3bbce1be3687bbfebe29abdb7631b83e6b25da3f4e1856a1611eb21854b689ea \ + --hash=sha256:42ae4781333e331a1743445931b08ebdad73e188fd554259e772556fc4937c48 \ + --hash=sha256:58be56ae0529c664cc04a9c76e68bb92b091e0194d6e3c50bea7e0f266f73713 \ + --hash=sha256:5da2c81575cc3ccf05d9830f9e8d3c70954819ca9a63828210498c0774fda1a3 \ + --hash=sha256:6311853aa2bba4064d0c28ca54e7b50c4d48e3de04f6770f6c60ebda1e975267 \ + --hash=sha256:650e2917660e696041ab3dcd7abac160b4121cd9a484c08406f24c5964099829 \ + --hash=sha256:6a4db36f9721fdf391646685ecffa404eb986cbe007a3289499020daf72e88a2 \ + --hash=sha256:779cbf1ce375b96111db98fca913c1f5ec11b1d870e529b1dc7354b2681a8c3a \ + --hash=sha256:7f6fe42536d9dcd3e2ffb9d3053f5d05221ae3bbcefbe472bdf2c71c793e3183 \ + --hash=sha256:891f712ce54e0d631370e1f4997b3f182f3368179198efc30d477c75d1f44942 \ + --hash=sha256:95c68a4b9b7828ba0428f8f7e3109c5d476ca44996ed9a5f8aac6269296e2d59 \ + --hash=sha256:96a8918a78d5d64e07c8ea4ed2bc44354e3f93f46a4866a40e8db934e4c0d74b \ + --hash=sha256:9c3cf890c3c0ecfe1510a452a165431b5831e24160c5fcf2071f0f85ca5a47cd \ + --hash=sha256:9f58099ad7affc0754ae42e6d87443299f15d739b0ce03c76f515153a5cda06c \ + --hash=sha256:a0b9e622c3b2b8d0ce32f77eba617ab0d6768b82836391e4f8f9e2074582bf02 \ + --hash=sha256:a7f9cbea4245ee36190f85fe1814e2d7b1e5f2186381b082f5d59f99b7f11328 \ + --hash=sha256:bab4aebd525218bab4ee615786c4581952eadc16b1ff031813a2fd51f0cc7b08 \ + --hash=sha256:c124b8c8779bf2d35d9b721e52d4adb41c9bfbde45e6a3f25f0820caa9aba73f \ + --hash=sha256:c9da0a39b53d2fab3e5467329ed50e951eb91386e9d0d5b12daf593973c3b168 \ + --hash=sha256:ca60076c388728d3b6ac3846842474f4250c91efbfe5afa872d3ffd69dd4b318 \ + --hash=sha256:cb6994fff247987c66a8a4e550ef374671c2b82e3c0d2115e689d21e511a652d \ + --hash=sha256:d1c1d6236feab51200272d79b3d3e0f12cf2cbb12b208c835b175a21efdb0a73 \ + --hash=sha256:dd7760a88a8d3d705ff562aa93f8445ead54f58fd482e4f9e2bafb7e177375d4 \ + --hash=sha256:dda4d8a3bb0b50f540f6ff4b6033f3a74e8bf0bd5320b70fab2c03e512a62812 \ + --hash=sha256:e0f1ff55dde0ebcfbef027edc21f71c205845585fffe30d4ec4979416613e9b3 \ + --hash=sha256:e7a539b9be7b9c00f11ef16b55486141bc2cdb0c54762f84e3c6fc091917436d \ + --hash=sha256:eb0b14523758e37802f27b7f8cd973f5f3d33be7613952c0df904b68c4842f0e \ + --hash=sha256:ed447680ff21c14aaceb6a9f99a5f639f583ccfe4ce1a5e1d48eb41c3d6b3217 \ + --hash=sha256:f52a4ad2568314ee713715b1e2d79ab55fab11e8b304fd1462ff5cccf4264b3e \ + --hash=sha256:fbd60c6aaa07c31d7754edbc2334aef50601b7f1ada67a96eb1eb57c7c72378f \ + --hash=sha256:fc28e0db232c62ca0c3600884933178f0825c99be4474cdd645e378a10588125 \ + --hash=sha256:fe31de3002e7b08eb20823b3735b97c86c5926dd0581c7710a680b418a8709d4 \ + --hash=sha256:fec221a051150eeddfdfcff162e6db92c65ecf46cb0f7bb1bf812a1520ec026b \ + --hash=sha256:ff71073ebf0e42258a42a0b34f2c09ec384977e7f6808999102eedd5b49920e3 + # via + # -r requirements.in + # google-resumable-media +google-resumable-media==2.3.3 \ + --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ + --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 + # via google-cloud-storage +googleapis-common-protos==1.56.3 \ + --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ + --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 + # via + # -r requirements.in + # google-api-core +idna==3.4 \ + --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ + --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 + # via + # -r requirements.in + # requests +importlib-metadata==4.8.3 \ + --hash=sha256:65a9576a5b2d58ca44d133c42a241905cc45e34d2c06fd5ba2bafa221e5d7b5e \ + --hash=sha256:766abffff765960fcc18003801f7044eb6755ffae4521c8e8ce8e83b9c9b0668 + # via + # -r requirements.in + # keyring +jeepney==0.7.1 \ + --hash=sha256:1b5a0ea5c0e7b166b2f5895b91a08c14de8915afda4407fb5022a195224958ac \ + --hash=sha256:fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f + # via + # -r requirements.in + # keyring + # secretstorage +jinja2==3.0.3 \ + --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ + --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 + # via + # -r requirements.in + # gcp-releasetool +keyring==23.4.1 \ + --hash=sha256:17e49fb0d6883c2b4445359434dba95aad84aabb29bbff044ad0ed7100232eca \ + --hash=sha256:89cbd74d4683ed164c8082fb38619341097741323b3786905c6dac04d6915a55 + # via + # -r requirements.in + # gcp-releasetool +markupsafe==2.0.1 \ + --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ + --hash=sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64 \ + --hash=sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b \ + --hash=sha256:04635854b943835a6ea959e948d19dcd311762c5c0c6e1f0e16ee57022669194 \ + --hash=sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567 \ + --hash=sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff \ + --hash=sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724 \ + --hash=sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74 \ + --hash=sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646 \ + --hash=sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35 \ + --hash=sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6 \ + --hash=sha256:20dca64a3ef2d6e4d5d615a3fd418ad3bde77a47ec8a23d984a12b5b4c74491a \ + --hash=sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6 \ + --hash=sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad \ + --hash=sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26 \ + --hash=sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38 \ + --hash=sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac \ + --hash=sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7 \ + --hash=sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6 \ + --hash=sha256:4296f2b1ce8c86a6aea78613c34bb1a672ea0e3de9c6ba08a960efe0b0a09047 \ + --hash=sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75 \ + --hash=sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f \ + --hash=sha256:4dc8f9fb58f7364b63fd9f85013b780ef83c11857ae79f2feda41e270468dd9b \ + --hash=sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135 \ + --hash=sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8 \ + --hash=sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a \ + --hash=sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a \ + --hash=sha256:5b6d930f030f8ed98e3e6c98ffa0652bdb82601e7a016ec2ab5d7ff23baa78d1 \ + --hash=sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9 \ + --hash=sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864 \ + --hash=sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914 \ + --hash=sha256:6300b8454aa6930a24b9618fbb54b5a68135092bc666f7b06901f897fa5c2fee \ + --hash=sha256:63f3268ba69ace99cab4e3e3b5840b03340efed0948ab8f78d2fd87ee5442a4f \ + --hash=sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18 \ + --hash=sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8 \ + --hash=sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2 \ + --hash=sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d \ + --hash=sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b \ + --hash=sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b \ + --hash=sha256:89c687013cb1cd489a0f0ac24febe8c7a666e6e221b783e53ac50ebf68e45d86 \ + --hash=sha256:8d206346619592c6200148b01a2142798c989edcb9c896f9ac9722a99d4e77e6 \ + --hash=sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f \ + --hash=sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb \ + --hash=sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833 \ + --hash=sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28 \ + --hash=sha256:9f02365d4e99430a12647f09b6cc8bab61a6564363f313126f775eb4f6ef798e \ + --hash=sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415 \ + --hash=sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902 \ + --hash=sha256:aca6377c0cb8a8253e493c6b451565ac77e98c2951c45f913e0b52facdcff83f \ + --hash=sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d \ + --hash=sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9 \ + --hash=sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d \ + --hash=sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145 \ + --hash=sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066 \ + --hash=sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c \ + --hash=sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1 \ + --hash=sha256:cdfba22ea2f0029c9261a4bd07e830a8da012291fbe44dc794e488b6c9bb353a \ + --hash=sha256:d6c7ebd4e944c85e2c3421e612a7057a2f48d478d79e61800d81468a8d842207 \ + --hash=sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f \ + --hash=sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53 \ + --hash=sha256:deb993cacb280823246a026e3b2d81c493c53de6acfd5e6bfe31ab3402bb37dd \ + --hash=sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134 \ + --hash=sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85 \ + --hash=sha256:f0567c4dc99f264f49fe27da5f735f414c4e7e7dd850cfd8e69f0862d7c74ea9 \ + --hash=sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5 \ + --hash=sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94 \ + --hash=sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509 \ + --hash=sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51 \ + --hash=sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872 + # via + # -r requirements.in + # jinja2 +packaging==21.3 \ + --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ + --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522 + # via + # -r requirements.in + # gcp-releasetool +protobuf==3.19.5 \ + --hash=sha256:1867f93b06a183f87696871bb8d1e99ee71dbb69d468ce1f0cc8bf3d30f982f3 \ + --hash=sha256:3c4160b601220627f7e91154e572baf5e161a9c3f445a8242d536ee3d0b7b17c \ + --hash=sha256:4ee2af7051d3b10c8a4fe6fd1a2c69f201fea36aeee7086cf202a692e1b99ee1 \ + --hash=sha256:5266c36cc0af3bb3dbf44f199d225b33da66a9a5c3bdc2b14865ad10eddf0e37 \ + --hash=sha256:5470f892961af464ae6eaf0f3099e2c1190ae8c7f36f174b89491281341f79ca \ + --hash=sha256:66d14b5b90090353efe75c9fb1bf65ef7267383034688d255b500822e37d5c2f \ + --hash=sha256:67efb5d20618020aa9596e17bfc37ca068c28ec0c1507d9507f73c93d46c9855 \ + --hash=sha256:696e6cfab94cc15a14946f2bf72719dced087d437adbd994fff34f38986628bc \ + --hash=sha256:6a02172b9650f819d01fb8e224fc69b0706458fc1ab4f1c669281243c71c1a5e \ + --hash=sha256:6eca9ae238ba615d702387a2ddea635d535d769994a9968c09a4ca920c487ab9 \ + --hash=sha256:950abd6c00e7b51f87ae8b18a0ce4d69fea217f62f171426e77de5061f6d9850 \ + --hash=sha256:9e1d74032f56ff25f417cfe84c8147047732e5059137ca42efad20cbbd25f5e0 \ + --hash=sha256:9e42b1cf2ecd8a1bd161239e693f22035ba99905ae6d7efeac8a0546c7ec1a27 \ + --hash=sha256:9f957ef53e872d58a0afd3bf6d80d48535d28c99b40e75e6634cbc33ea42fd54 \ + --hash=sha256:a89aa0c042e61e11ade320b802d6db4ee5391d8d973e46d3a48172c1597789f8 \ + --hash=sha256:c0f80876a8ff0ae7064084ed094eb86497bd5a3812e6fc96a05318b92301674e \ + --hash=sha256:c44e3282cff74ad18c7e8a0375f407f69ee50c2116364b44492a196293e08b21 \ + --hash=sha256:d249519ba5ecf5dd6b18150c9b6bcde510b273714b696f3923ff8308fc11ae49 \ + --hash=sha256:d3973a2d58aefc7d1230725c2447ce7f86a71cbc094b86a77c6ee1505ac7cdb1 \ + --hash=sha256:dca2284378a5f2a86ffed35c6ac147d14c48b525eefcd1083e5a9ce28dfa8657 \ + --hash=sha256:e63b0b3c42e51c94add62b010366cd4979cb6d5f06158bcae8faac4c294f91e1 \ + --hash=sha256:f2b599a21c9a32e171ec29a2ac54e03297736c578698e11b099d031f79da114b \ + --hash=sha256:f2bde37667b18c2b5280df83bc799204394a5d2d774e4deaf9de0eb741df6833 \ + --hash=sha256:f4f909f4dde413dec435a44b0894956d55bb928ded7d6e3c726556ca4c796e84 \ + --hash=sha256:f976234e20ab2785f54224bcdafa027674e23663b132fa3ca0caa291a6cfbde7 \ + --hash=sha256:f9cebda093c2f6bfed88f1c17cdade09d4d96096421b344026feee236532d4de + # via + # -r requirements.in + # gcp-docuploader + # gcp-releasetool + # google-api-core + # google-cloud-storage + # googleapis-common-protos +pyasn1==0.4.8 \ + --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ + --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba + # via + # pyasn1-modules + # rsa +pyasn1-modules==0.2.8 \ + --hash=sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e \ + --hash=sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74 + # via google-auth +pycparser==2.21 \ + --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ + --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 + # via + # -r requirements.in + # cffi +pyjwt==2.4.0 \ + --hash=sha256:72d1d253f32dbd4f5c88eaf1fdc62f3a19f676ccbadb9dbc5d07e951b2b26daf \ + --hash=sha256:d42908208c699b3b973cbeb01a969ba6a96c821eefb1c5bfe4c390c01d67abba + # via + # -r requirements.in + # gcp-releasetool +pyparsing==3.0.9 \ + --hash=sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb \ + --hash=sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc + # via + # -r requirements.in + # packaging +pyperclip==1.8.2 \ + --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 + # via + # -r requirements.in + # gcp-releasetool +python-dateutil==2.8.2 \ + --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ + --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 + # via + # -r requirements.in + # gcp-releasetool +requests==2.27.1 \ + --hash=sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61 \ + --hash=sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d + # via + # -r requirements.in + # gcp-releasetool + # google-api-core + # google-cloud-storage +rsa==4.9 \ + --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \ + --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 + # via + # -r requirements.in + # google-auth +secretstorage==3.3.3 \ + --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ + --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 + # via keyring +six==1.16.0 \ + --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ + --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 + # via + # -r requirements.in + # gcp-docuploader + # google-auth + # python-dateutil +typing-extensions==4.1.1 \ + --hash=sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42 \ + --hash=sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2 + # via -r requirements.in +urllib3==1.26.12 \ + --hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \ + --hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997 + # via + # -r requirements.in + # requests +zipp==3.6.0 \ + --hash=sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832 \ + --hash=sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc + # via + # -r requirements.in + # importlib-metadata diff --git a/CHANGELOG.md b/CHANGELOG.md index 7767cd1d..e70e4c90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,37 @@ # Changelog +## [2.3.0](https://github.com/googleapis/java-websecurityscanner/compare/v2.2.4...v2.3.0) (2022-10-04) + + +### Features + +* Added NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN to ScanRunWarningTrace.Code ([#741](https://github.com/googleapis/java-websecurityscanner/issues/741)) ([9cd376d](https://github.com/googleapis/java-websecurityscanner/commit/9cd376dc142d388cdbaa9ef5f0881df0513ce67c)) + + +### Bug Fixes + +* Added fix to return a list of the endpoints that encountered errors during crawl, along with the specific error message when the starting URL returns Http errors ([9cd376d](https://github.com/googleapis/java-websecurityscanner/commit/9cd376dc142d388cdbaa9ef5f0881df0513ce67c)) +* GoogleAccount is deprecated ([9cd376d](https://github.com/googleapis/java-websecurityscanner/commit/9cd376dc142d388cdbaa9ef5f0881df0513ce67c)) +* update protobuf to v3.21.7 ([e03db73](https://github.com/googleapis/java-websecurityscanner/commit/e03db73a21f37f7aafbaffa06161bdeb70c00cbf)) + + +### Dependencies + +* Update dependency cachetools to v5 ([#761](https://github.com/googleapis/java-websecurityscanner/issues/761)) ([1ceec9b](https://github.com/googleapis/java-websecurityscanner/commit/1ceec9bf9e19c224760a61e03413caec7a33350d)) +* Update dependency certifi to v2022.9.24 ([#754](https://github.com/googleapis/java-websecurityscanner/issues/754)) ([2b6c4b4](https://github.com/googleapis/java-websecurityscanner/commit/2b6c4b4b1a3028a12c570fa18d1d5db7172b2555)) +* Update dependency charset-normalizer to v2.1.1 ([#763](https://github.com/googleapis/java-websecurityscanner/issues/763)) ([5b03038](https://github.com/googleapis/java-websecurityscanner/commit/5b03038650c6b0c0fa6588ef08e137953a7ced02)) +* Update dependency click to v8.1.3 ([#764](https://github.com/googleapis/java-websecurityscanner/issues/764)) ([29f0967](https://github.com/googleapis/java-websecurityscanner/commit/29f09673e6904caeff4ec39a1c5f6f6c5b727c75)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#774](https://github.com/googleapis/java-websecurityscanner/issues/774)) ([e76a110](https://github.com/googleapis/java-websecurityscanner/commit/e76a1104a0dc7eb0042105a514b80c94f72c0ed6)) +* Update dependency gcp-releasetool to v1.8.8 ([#755](https://github.com/googleapis/java-websecurityscanner/issues/755)) ([d787a88](https://github.com/googleapis/java-websecurityscanner/commit/d787a88599978e892e4990c11081f41a8defdf39)) +* Update dependency google-api-core to v2.10.1 ([#765](https://github.com/googleapis/java-websecurityscanner/issues/765)) ([8c131b5](https://github.com/googleapis/java-websecurityscanner/commit/8c131b5f3b40ec091ab3b901492af48b939157b1)) +* Update dependency google-auth to v2.11.1 ([#756](https://github.com/googleapis/java-websecurityscanner/issues/756)) ([9b74593](https://github.com/googleapis/java-websecurityscanner/commit/9b74593503160e80f4e7fc57f133dbf71bcfb7cf)) +* Update dependency google-cloud-core to v2.3.2 ([#757](https://github.com/googleapis/java-websecurityscanner/issues/757)) ([7236255](https://github.com/googleapis/java-websecurityscanner/commit/7236255c211acb9f9bbffd30927052d97f7540fc)) +* Update dependency google-cloud-storage to v2.5.0 ([#766](https://github.com/googleapis/java-websecurityscanner/issues/766)) ([5067cd4](https://github.com/googleapis/java-websecurityscanner/commit/5067cd4bd020e1b5b58124d1c17d0bf12a410aa4)) +* Update dependency googleapis-common-protos to v1.56.4 ([#758](https://github.com/googleapis/java-websecurityscanner/issues/758)) ([8bc8fc3](https://github.com/googleapis/java-websecurityscanner/commit/8bc8fc306a8cf5bdf9e26a48db5f0c90501ec526)) +* Update dependency joda-time:joda-time to v2.11.2 ([#751](https://github.com/googleapis/java-websecurityscanner/issues/751)) ([0c8718d](https://github.com/googleapis/java-websecurityscanner/commit/0c8718d48d5edd05f3a3ca65f1fbd11f17d0edd2)) +* Update dependency protobuf to v4 ([#762](https://github.com/googleapis/java-websecurityscanner/issues/762)) ([c7e5ee5](https://github.com/googleapis/java-websecurityscanner/commit/c7e5ee53fa1edca71ba10bf9cbaee94e3e4fe430)) +* Update dependency zipp to v3.8.1 ([#760](https://github.com/googleapis/java-websecurityscanner/issues/760)) ([af0e798](https://github.com/googleapis/java-websecurityscanner/commit/af0e79800e9e279def200046345c34a56a5d9d6b)) + ## [2.2.4](https://github.com/googleapis/java-websecurityscanner/compare/v2.2.3...v2.2.4) (2022-09-15) diff --git a/README.md b/README.md index c2d78d8f..de6d792c 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import @@ -41,7 +41,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-websecurityscanner - 2.2.2 + 2.2.4 ``` @@ -49,20 +49,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.1.1') +implementation platform('com.google.cloud:libraries-bom:26.1.2') implementation 'com.google.cloud:google-cloud-websecurityscanner' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-websecurityscanner:2.2.3' +implementation 'com.google.cloud:google-cloud-websecurityscanner:2.2.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.2.3" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.2.4" ``` ## Authentication diff --git a/google-cloud-websecurityscanner-bom/pom.xml b/google-cloud-websecurityscanner-bom/pom.xml index 08f944fc..2a1e76ec 100644 --- a/google-cloud-websecurityscanner-bom/pom.xml +++ b/google-cloud-websecurityscanner-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner-bom - 2.2.4 + 2.3.0 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-websecurityscanner - 2.2.4 + 2.3.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.89.4 + 0.90.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.89.4 + 0.90.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.2.4 + 2.3.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.89.4 + 0.90.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.89.4 + 0.90.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.2.4 + 2.3.0 diff --git a/google-cloud-websecurityscanner/pom.xml b/google-cloud-websecurityscanner/pom.xml index 21174956..ca7752db 100644 --- a/google-cloud-websecurityscanner/pom.xml +++ b/google-cloud-websecurityscanner/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner - 2.2.4 + 2.3.0 jar Google Cloud Web Security Scanner https://github.com/googleapis/java-websecurityscanner @@ -11,7 +11,7 @@ com.google.cloud google-cloud-websecurityscanner-parent - 2.2.4 + 2.3.0 google-cloud-websecurityscanner diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java index d05e5287..902aa9aa 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java @@ -43,8 +43,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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
  *   CreateScanConfigRequest request =
  *       CreateScanConfigRequest.newBuilder()
@@ -85,8 +88,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
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -98,8 +104,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
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * WebSecurityScannerClient webSecurityScannerClient =
@@ -110,8 +119,11 @@
  * 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
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -180,8 +192,11 @@ public WebSecurityScannerStub getStub() {
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   CreateScanConfigRequest request =
    *       CreateScanConfigRequest.newBuilder()
@@ -206,8 +221,11 @@ public final ScanConfig createScanConfig(CreateScanConfigRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   CreateScanConfigRequest request =
    *       CreateScanConfigRequest.newBuilder()
@@ -232,8 +250,11 @@ public final UnaryCallable createScanConfig
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   DeleteScanConfigRequest request =
    *       DeleteScanConfigRequest.newBuilder().setName("name3373707").build();
@@ -255,8 +276,11 @@ public final void deleteScanConfig(DeleteScanConfigRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   DeleteScanConfigRequest request =
    *       DeleteScanConfigRequest.newBuilder().setName("name3373707").build();
@@ -278,8 +302,11 @@ public final UnaryCallable deleteScanConfigCalla
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanConfigRequest request =
    *       GetScanConfigRequest.newBuilder().setName("name3373707").build();
@@ -301,8 +328,11 @@ public final ScanConfig getScanConfig(GetScanConfigRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanConfigRequest request =
    *       GetScanConfigRequest.newBuilder().setName("name3373707").build();
@@ -324,8 +354,11 @@ public final UnaryCallable getScanConfigCallab
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -353,8 +386,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -383,8 +419,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -420,8 +459,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   UpdateScanConfigRequest request =
    *       UpdateScanConfigRequest.newBuilder()
@@ -446,8 +488,11 @@ public final ScanConfig updateScanConfig(UpdateScanConfigRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   UpdateScanConfigRequest request =
    *       UpdateScanConfigRequest.newBuilder()
@@ -472,8 +517,11 @@ public final UnaryCallable updateScanConfig
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StartScanRunRequest request = StartScanRunRequest.newBuilder().setName("name3373707").build();
    *   ScanRun response = webSecurityScannerClient.startScanRun(request);
@@ -494,8 +542,11 @@ public final ScanRun startScanRun(StartScanRunRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StartScanRunRequest request = StartScanRunRequest.newBuilder().setName("name3373707").build();
    *   ApiFuture future =
@@ -516,8 +567,11 @@ public final UnaryCallable startScanRunCallable()
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanRunRequest request = GetScanRunRequest.newBuilder().setName("name3373707").build();
    *   ScanRun response = webSecurityScannerClient.getScanRun(request);
@@ -538,8 +592,11 @@ public final ScanRun getScanRun(GetScanRunRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanRunRequest request = GetScanRunRequest.newBuilder().setName("name3373707").build();
    *   ApiFuture future = webSecurityScannerClient.getScanRunCallable().futureCall(request);
@@ -559,8 +616,11 @@ public final UnaryCallable getScanRunCallable() {
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -588,8 +648,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -618,8 +681,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -654,8 +720,11 @@ public final UnaryCallable listScanRu
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StopScanRunRequest request = StopScanRunRequest.newBuilder().setName("name3373707").build();
    *   ScanRun response = webSecurityScannerClient.stopScanRun(request);
@@ -676,8 +745,11 @@ public final ScanRun stopScanRun(StopScanRunRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StopScanRunRequest request = StopScanRunRequest.newBuilder().setName("name3373707").build();
    *   ApiFuture future =
@@ -698,8 +770,11 @@ public final UnaryCallable stopScanRunCallable() {
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -727,8 +802,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -757,8 +835,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -794,8 +875,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetFindingRequest request = GetFindingRequest.newBuilder().setName("name3373707").build();
    *   Finding response = webSecurityScannerClient.getFinding(request);
@@ -816,8 +900,11 @@ public final Finding getFinding(GetFindingRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetFindingRequest request = GetFindingRequest.newBuilder().setName("name3373707").build();
    *   ApiFuture future = webSecurityScannerClient.getFindingCallable().futureCall(request);
@@ -837,8 +924,11 @@ public final UnaryCallable getFindingCallable() {
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -867,8 +957,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -898,8 +991,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -935,8 +1031,11 @@ public final UnaryCallable listFindin
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingTypeStatsRequest request =
    *       ListFindingTypeStatsRequest.newBuilder().setParent("parent-995424086").build();
@@ -960,8 +1059,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingTypeStatsRequest request =
    *       ListFindingTypeStatsRequest.newBuilder().setParent("parent-995424086").build();
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java
index 838d6101..e40dd1df 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java
+++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java
@@ -58,8 +58,11 @@
  * 

For example, to set the total timeout of createScanConfig 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
  * WebSecurityScannerSettings.Builder webSecurityScannerSettingsBuilder =
  *     WebSecurityScannerSettings.newBuilder();
  * webSecurityScannerSettingsBuilder
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java
index d6a90363..3b7c55f7 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java
+++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java
@@ -28,8 +28,11 @@
  * 

Sample for WebSecurityScannerClient: * *

{@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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
  *   CreateScanConfigRequest request =
  *       CreateScanConfigRequest.newBuilder()
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java
index 448c4ade..a8cfd73b 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java
+++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java
@@ -103,7 +103,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("scanConfig", request.getScanConfig()))
+                                  .toBody("scanConfig", request.getScanConfig(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -246,7 +246,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("scanConfig", request.getScanConfig()))
+                                  .toBody("scanConfig", request.getScanConfig(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -283,7 +283,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -388,7 +388,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java
index 863dfae8..5ee7c49a 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java
+++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java
@@ -97,8 +97,11 @@
  * 

For example, to set the total timeout of createScanConfig 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
  * WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder =
  *     WebSecurityScannerStubSettings.newBuilder();
  * webSecurityScannerSettingsBuilder
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java
index 6b4db15e..c64f3441 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java
+++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java
@@ -45,8 +45,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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
@@ -84,8 +87,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
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,8 +103,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
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * WebSecurityScannerClient webSecurityScannerClient =
@@ -109,8 +118,11 @@
  * 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
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -180,8 +192,11 @@ public WebSecurityScannerStub getStub() {
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
@@ -210,8 +225,11 @@ public final ScanConfig createScanConfig(ProjectName parent, ScanConfig scanConf
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
@@ -237,8 +255,11 @@ public final ScanConfig createScanConfig(String parent, ScanConfig scanConfig) {
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   CreateScanConfigRequest request =
    *       CreateScanConfigRequest.newBuilder()
@@ -263,8 +284,11 @@ public final ScanConfig createScanConfig(CreateScanConfigRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   CreateScanConfigRequest request =
    *       CreateScanConfigRequest.newBuilder()
@@ -289,8 +313,11 @@ public final UnaryCallable createScanConfig
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   webSecurityScannerClient.deleteScanConfig(name);
@@ -314,8 +341,11 @@ public final void deleteScanConfig(ScanConfigName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   webSecurityScannerClient.deleteScanConfig(name);
@@ -338,8 +368,11 @@ public final void deleteScanConfig(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   DeleteScanConfigRequest request =
    *       DeleteScanConfigRequest.newBuilder()
@@ -363,8 +396,11 @@ public final void deleteScanConfig(DeleteScanConfigRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   DeleteScanConfigRequest request =
    *       DeleteScanConfigRequest.newBuilder()
@@ -388,8 +424,11 @@ public final UnaryCallable deleteScanConfigCalla
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   ScanConfig response = webSecurityScannerClient.getScanConfig(name);
@@ -413,8 +452,11 @@ public final ScanConfig getScanConfig(ScanConfigName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   ScanConfig response = webSecurityScannerClient.getScanConfig(name);
@@ -437,8 +479,11 @@ public final ScanConfig getScanConfig(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanConfigRequest request =
    *       GetScanConfigRequest.newBuilder()
@@ -462,8 +507,11 @@ public final ScanConfig getScanConfig(GetScanConfigRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanConfigRequest request =
    *       GetScanConfigRequest.newBuilder()
@@ -487,8 +535,11 @@ public final UnaryCallable getScanConfigCallab
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) {
@@ -516,8 +567,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ProjectName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) {
@@ -542,8 +596,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -571,8 +628,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -601,8 +661,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -638,8 +701,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -671,8 +737,11 @@ public final ScanConfig updateScanConfig(ScanConfig scanConfig, FieldMask update
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   UpdateScanConfigRequest request =
    *       UpdateScanConfigRequest.newBuilder()
@@ -697,8 +766,11 @@ public final ScanConfig updateScanConfig(UpdateScanConfigRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   UpdateScanConfigRequest request =
    *       UpdateScanConfigRequest.newBuilder()
@@ -723,8 +795,11 @@ public final UnaryCallable updateScanConfig
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   ScanRun response = webSecurityScannerClient.startScanRun(name);
@@ -748,8 +823,11 @@ public final ScanRun startScanRun(ScanConfigName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   ScanRun response = webSecurityScannerClient.startScanRun(name);
@@ -772,8 +850,11 @@ public final ScanRun startScanRun(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StartScanRunRequest request =
    *       StartScanRunRequest.newBuilder()
@@ -797,8 +878,11 @@ public final ScanRun startScanRun(StartScanRunRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StartScanRunRequest request =
    *       StartScanRunRequest.newBuilder()
@@ -822,8 +906,11 @@ public final UnaryCallable startScanRunCallable()
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ScanRun response = webSecurityScannerClient.getScanRun(name);
@@ -847,8 +934,11 @@ public final ScanRun getScanRun(ScanRunName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   ScanRun response = webSecurityScannerClient.getScanRun(name);
@@ -871,8 +961,11 @@ public final ScanRun getScanRun(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanRunRequest request =
    *       GetScanRunRequest.newBuilder()
@@ -896,8 +989,11 @@ public final ScanRun getScanRun(GetScanRunRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanRunRequest request =
    *       GetScanRunRequest.newBuilder()
@@ -920,8 +1016,11 @@ public final UnaryCallable getScanRunCallable() {
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) {
@@ -949,8 +1048,11 @@ public final ListScanRunsPagedResponse listScanRuns(ScanConfigName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) {
@@ -975,8 +1077,11 @@ public final ListScanRunsPagedResponse listScanRuns(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -1004,8 +1109,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -1034,8 +1142,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -1070,8 +1181,11 @@ public final UnaryCallable listScanRu
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ScanRun response = webSecurityScannerClient.stopScanRun(name);
@@ -1095,8 +1209,11 @@ public final ScanRun stopScanRun(ScanRunName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   ScanRun response = webSecurityScannerClient.stopScanRun(name);
@@ -1119,8 +1236,11 @@ public final ScanRun stopScanRun(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StopScanRunRequest request =
    *       StopScanRunRequest.newBuilder()
@@ -1144,8 +1264,11 @@ public final ScanRun stopScanRun(StopScanRunRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StopScanRunRequest request =
    *       StopScanRunRequest.newBuilder()
@@ -1169,8 +1292,11 @@ public final UnaryCallable stopScanRunCallable() {
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) {
@@ -1198,8 +1324,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ScanRunName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) {
@@ -1224,8 +1353,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -1253,8 +1385,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -1283,8 +1418,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -1320,8 +1458,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]");
    *   Finding response = webSecurityScannerClient.getFinding(name);
@@ -1346,8 +1487,11 @@ public final Finding getFinding(FindingName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name =
    *       FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]").toString();
@@ -1372,8 +1516,11 @@ public final Finding getFinding(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetFindingRequest request =
    *       GetFindingRequest.newBuilder()
@@ -1399,8 +1546,11 @@ public final Finding getFinding(GetFindingRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetFindingRequest request =
    *       GetFindingRequest.newBuilder()
@@ -1425,8 +1575,11 @@ public final UnaryCallable getFindingCallable() {
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   String filter = "filter-1274492040";
@@ -1459,8 +1612,11 @@ public final ListFindingsPagedResponse listFindings(ScanRunName parent, String f
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   String filter = "filter-1274492040";
@@ -1490,8 +1646,11 @@ public final ListFindingsPagedResponse listFindings(String parent, String filter
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -1520,8 +1679,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -1551,8 +1713,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -1588,8 +1753,11 @@ public final UnaryCallable listFindin
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent);
@@ -1615,8 +1783,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(ScanRunName paren
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent);
@@ -1640,8 +1811,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingTypeStatsRequest request =
    *       ListFindingTypeStatsRequest.newBuilder()
@@ -1667,8 +1841,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingTypeStatsRequest request =
    *       ListFindingTypeStatsRequest.newBuilder()
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java
index 430ab763..bda9e7a8 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java
+++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java
@@ -58,8 +58,11 @@
  * 

For example, to set the total timeout of createScanConfig 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
  * WebSecurityScannerSettings.Builder webSecurityScannerSettingsBuilder =
  *     WebSecurityScannerSettings.newBuilder();
  * webSecurityScannerSettingsBuilder
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java
index 381caba4..1a03cc9f 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java
+++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for WebSecurityScannerClient: * *

{@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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java
index 12f0943e..930ee98d 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java
+++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java
@@ -103,7 +103,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("scanConfig", request.getScanConfig()))
+                                  .toBody("scanConfig", request.getScanConfig(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -246,7 +246,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("scanConfig", request.getScanConfig()))
+                                  .toBody("scanConfig", request.getScanConfig(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -283,7 +283,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -389,7 +389,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java
index 518a4b1c..c6f39f47 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java
+++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java
@@ -97,8 +97,11 @@
  * 

For example, to set the total timeout of createScanConfig 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
  * WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder =
  *     WebSecurityScannerStubSettings.newBuilder();
  * webSecurityScannerSettingsBuilder
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java
index 1cb0a29d..d8ac65d3 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java
+++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java
@@ -45,8 +45,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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
@@ -84,8 +87,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
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,8 +103,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
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * WebSecurityScannerClient webSecurityScannerClient =
@@ -109,8 +118,11 @@
  * 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
  * WebSecurityScannerSettings webSecurityScannerSettings =
  *     WebSecurityScannerSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -180,8 +192,11 @@ public WebSecurityScannerStub getStub() {
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
@@ -210,8 +225,11 @@ public final ScanConfig createScanConfig(ProjectName parent, ScanConfig scanConf
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
@@ -237,8 +255,11 @@ public final ScanConfig createScanConfig(String parent, ScanConfig scanConfig) {
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   CreateScanConfigRequest request =
    *       CreateScanConfigRequest.newBuilder()
@@ -263,8 +284,11 @@ public final ScanConfig createScanConfig(CreateScanConfigRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   CreateScanConfigRequest request =
    *       CreateScanConfigRequest.newBuilder()
@@ -289,8 +313,11 @@ public final UnaryCallable createScanConfig
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   webSecurityScannerClient.deleteScanConfig(name);
@@ -314,8 +341,11 @@ public final void deleteScanConfig(ScanConfigName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   webSecurityScannerClient.deleteScanConfig(name);
@@ -338,8 +368,11 @@ public final void deleteScanConfig(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   DeleteScanConfigRequest request =
    *       DeleteScanConfigRequest.newBuilder()
@@ -363,8 +396,11 @@ public final void deleteScanConfig(DeleteScanConfigRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   DeleteScanConfigRequest request =
    *       DeleteScanConfigRequest.newBuilder()
@@ -388,8 +424,11 @@ public final UnaryCallable deleteScanConfigCalla
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   ScanConfig response = webSecurityScannerClient.getScanConfig(name);
@@ -413,8 +452,11 @@ public final ScanConfig getScanConfig(ScanConfigName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   ScanConfig response = webSecurityScannerClient.getScanConfig(name);
@@ -437,8 +479,11 @@ public final ScanConfig getScanConfig(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanConfigRequest request =
    *       GetScanConfigRequest.newBuilder()
@@ -462,8 +507,11 @@ public final ScanConfig getScanConfig(GetScanConfigRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanConfigRequest request =
    *       GetScanConfigRequest.newBuilder()
@@ -487,8 +535,11 @@ public final UnaryCallable getScanConfigCallab
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) {
@@ -516,8 +567,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ProjectName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) {
@@ -542,8 +596,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -571,8 +628,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -601,8 +661,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanConfigsRequest request =
    *       ListScanConfigsRequest.newBuilder()
@@ -638,8 +701,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -671,8 +737,11 @@ public final ScanConfig updateScanConfig(ScanConfig scanConfig, FieldMask update
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   UpdateScanConfigRequest request =
    *       UpdateScanConfigRequest.newBuilder()
@@ -697,8 +766,11 @@ public final ScanConfig updateScanConfig(UpdateScanConfigRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   UpdateScanConfigRequest request =
    *       UpdateScanConfigRequest.newBuilder()
@@ -723,8 +795,11 @@ public final UnaryCallable updateScanConfig
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   ScanRun response = webSecurityScannerClient.startScanRun(name);
@@ -748,8 +823,11 @@ public final ScanRun startScanRun(ScanConfigName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   ScanRun response = webSecurityScannerClient.startScanRun(name);
@@ -772,8 +850,11 @@ public final ScanRun startScanRun(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StartScanRunRequest request =
    *       StartScanRunRequest.newBuilder()
@@ -797,8 +878,11 @@ public final ScanRun startScanRun(StartScanRunRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StartScanRunRequest request =
    *       StartScanRunRequest.newBuilder()
@@ -822,8 +906,11 @@ public final UnaryCallable startScanRunCallable()
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ScanRun response = webSecurityScannerClient.getScanRun(name);
@@ -847,8 +934,11 @@ public final ScanRun getScanRun(ScanRunName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   ScanRun response = webSecurityScannerClient.getScanRun(name);
@@ -871,8 +961,11 @@ public final ScanRun getScanRun(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanRunRequest request =
    *       GetScanRunRequest.newBuilder()
@@ -896,8 +989,11 @@ public final ScanRun getScanRun(GetScanRunRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetScanRunRequest request =
    *       GetScanRunRequest.newBuilder()
@@ -920,8 +1016,11 @@ public final UnaryCallable getScanRunCallable() {
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) {
@@ -949,8 +1048,11 @@ public final ListScanRunsPagedResponse listScanRuns(ScanConfigName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
    *   for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) {
@@ -975,8 +1077,11 @@ public final ListScanRunsPagedResponse listScanRuns(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -1004,8 +1109,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -1034,8 +1142,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListScanRunsRequest request =
    *       ListScanRunsRequest.newBuilder()
@@ -1070,8 +1181,11 @@ public final UnaryCallable listScanRu
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ScanRun response = webSecurityScannerClient.stopScanRun(name);
@@ -1095,8 +1209,11 @@ public final ScanRun stopScanRun(ScanRunName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   ScanRun response = webSecurityScannerClient.stopScanRun(name);
@@ -1119,8 +1236,11 @@ public final ScanRun stopScanRun(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StopScanRunRequest request =
    *       StopScanRunRequest.newBuilder()
@@ -1144,8 +1264,11 @@ public final ScanRun stopScanRun(StopScanRunRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   StopScanRunRequest request =
    *       StopScanRunRequest.newBuilder()
@@ -1169,8 +1292,11 @@ public final UnaryCallable stopScanRunCallable() {
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) {
@@ -1198,8 +1324,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ScanRunName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) {
@@ -1224,8 +1353,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -1253,8 +1385,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -1283,8 +1418,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListCrawledUrlsRequest request =
    *       ListCrawledUrlsRequest.newBuilder()
@@ -1320,8 +1458,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]");
    *   Finding response = webSecurityScannerClient.getFinding(name);
@@ -1346,8 +1487,11 @@ public final Finding getFinding(FindingName 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String name =
    *       FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]").toString();
@@ -1372,8 +1516,11 @@ public final Finding getFinding(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetFindingRequest request =
    *       GetFindingRequest.newBuilder()
@@ -1399,8 +1546,11 @@ public final Finding getFinding(GetFindingRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   GetFindingRequest request =
    *       GetFindingRequest.newBuilder()
@@ -1425,8 +1575,11 @@ public final UnaryCallable getFindingCallable() {
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   String filter = "filter-1274492040";
@@ -1459,8 +1612,11 @@ public final ListFindingsPagedResponse listFindings(ScanRunName parent, String f
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   String filter = "filter-1274492040";
@@ -1490,8 +1646,11 @@ public final ListFindingsPagedResponse listFindings(String parent, String filter
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -1520,8 +1679,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -1551,8 +1713,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingsRequest request =
    *       ListFindingsRequest.newBuilder()
@@ -1588,8 +1753,11 @@ public final UnaryCallable listFindin
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent);
@@ -1615,8 +1783,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(ScanRunName paren
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
    *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent);
@@ -1640,8 +1811,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingTypeStatsRequest request =
    *       ListFindingTypeStatsRequest.newBuilder()
@@ -1667,8 +1841,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(
    * 

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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
    *   ListFindingTypeStatsRequest request =
    *       ListFindingTypeStatsRequest.newBuilder()
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java
index b218cd5b..ea96d013 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java
+++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java
@@ -58,8 +58,11 @@
  * 

For example, to set the total timeout of createScanConfig 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
  * WebSecurityScannerSettings.Builder webSecurityScannerSettingsBuilder =
  *     WebSecurityScannerSettings.newBuilder();
  * webSecurityScannerSettingsBuilder
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java
index 7e6dacc1..7056a945 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java
+++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for WebSecurityScannerClient: * *

{@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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java
index b0ce37aa..5440d1d0 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java
+++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java
@@ -103,7 +103,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("scanConfig", request.getScanConfig()))
+                                  .toBody("scanConfig", request.getScanConfig(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -246,7 +246,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("scanConfig", request.getScanConfig()))
+                                  .toBody("scanConfig", request.getScanConfig(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -283,7 +283,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -388,7 +388,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java
index 52c5e9b6..79372d8d 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java
+++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java
@@ -97,8 +97,11 @@
  * 

For example, to set the total timeout of createScanConfig 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
  * WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder =
  *     WebSecurityScannerStubSettings.newBuilder();
  * webSecurityScannerSettingsBuilder
diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java
index 88fea022..d678fbff 100644
--- a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java
+++ b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java
@@ -95,6 +95,7 @@ public void createScanConfigTest() throws Exception {
             .setSchedule(ScanConfig.Schedule.newBuilder().build())
             .setManagedScan(true)
             .setStaticIpScan(true)
+            .setIgnoreHttpStatusErrors(true)
             .build();
     mockService.addResponse(expectedResponse);
 
@@ -201,6 +202,7 @@ public void getScanConfigTest() throws Exception {
             .setSchedule(ScanConfig.Schedule.newBuilder().build())
             .setManagedScan(true)
             .setStaticIpScan(true)
+            .setIgnoreHttpStatusErrors(true)
             .build();
     mockService.addResponse(expectedResponse);
 
@@ -319,6 +321,7 @@ public void updateScanConfigTest() throws Exception {
             .setSchedule(ScanConfig.Schedule.newBuilder().build())
             .setManagedScan(true)
             .setStaticIpScan(true)
+            .setIgnoreHttpStatusErrors(true)
             .build();
     mockService.addResponse(expectedResponse);
 
@@ -335,6 +338,7 @@ public void updateScanConfigTest() throws Exception {
                     .setSchedule(ScanConfig.Schedule.newBuilder().build())
                     .setManagedScan(true)
                     .setStaticIpScan(true)
+                    .setIgnoreHttpStatusErrors(true)
                     .build())
             .setUpdateMask(FieldMask.newBuilder().build())
             .build();
@@ -378,6 +382,7 @@ public void updateScanConfigExceptionTest() throws Exception {
                       .setSchedule(ScanConfig.Schedule.newBuilder().build())
                       .setManagedScan(true)
                       .setStaticIpScan(true)
+                      .setIgnoreHttpStatusErrors(true)
                       .build())
               .setUpdateMask(FieldMask.newBuilder().build())
               .build();
@@ -702,6 +707,7 @@ public void getFindingTest() throws Exception {
             .setVulnerableHeaders(VulnerableHeaders.newBuilder().build())
             .setVulnerableParameters(VulnerableParameters.newBuilder().build())
             .setXss(Xss.newBuilder().build())
+            .setXxe(Xxe.newBuilder().build())
             .build();
     mockService.addResponse(expectedResponse);
 
diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java
index e70a9522..c97774ef 100644
--- a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java
+++ b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java
@@ -98,6 +98,7 @@ public void createScanConfigTest() throws Exception {
             .setSchedule(ScanConfig.Schedule.newBuilder().build())
             .setManagedScan(true)
             .setStaticIpScan(true)
+            .setIgnoreHttpStatusErrors(true)
             .build();
     mockWebSecurityScanner.addResponse(expectedResponse);
 
@@ -189,6 +190,7 @@ public void getScanConfigTest() throws Exception {
             .setSchedule(ScanConfig.Schedule.newBuilder().build())
             .setManagedScan(true)
             .setStaticIpScan(true)
+            .setIgnoreHttpStatusErrors(true)
             .build();
     mockWebSecurityScanner.addResponse(expectedResponse);
 
@@ -292,6 +294,7 @@ public void updateScanConfigTest() throws Exception {
             .setSchedule(ScanConfig.Schedule.newBuilder().build())
             .setManagedScan(true)
             .setStaticIpScan(true)
+            .setIgnoreHttpStatusErrors(true)
             .build();
     mockWebSecurityScanner.addResponse(expectedResponse);
 
@@ -604,6 +607,7 @@ public void getFindingTest() throws Exception {
             .setVulnerableHeaders(VulnerableHeaders.newBuilder().build())
             .setVulnerableParameters(VulnerableParameters.newBuilder().build())
             .setXss(Xss.newBuilder().build())
+            .setXxe(Xxe.newBuilder().build())
             .build();
     mockWebSecurityScanner.addResponse(expectedResponse);
 
diff --git a/grpc-google-cloud-websecurityscanner-v1/pom.xml b/grpc-google-cloud-websecurityscanner-v1/pom.xml
index 9956d7dd..00ce161b 100644
--- a/grpc-google-cloud-websecurityscanner-v1/pom.xml
+++ b/grpc-google-cloud-websecurityscanner-v1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-websecurityscanner-v1
-  2.2.4
+  2.3.0
   grpc-google-cloud-websecurityscanner-v1
   GRPC library for grpc-google-cloud-websecurityscanner-v1
   
     com.google.cloud
     google-cloud-websecurityscanner-parent
-    2.2.4
+    2.3.0
   
   
     
diff --git a/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml
index 0ded77b9..075de154 100644
--- a/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml
+++ b/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-websecurityscanner-v1alpha
-  0.89.4
+  0.90.0
   grpc-google-cloud-websecurityscanner-v1alpha
   GRPC library for grpc-google-cloud-websecurityscanner-v1alpha
   
     com.google.cloud
     google-cloud-websecurityscanner-parent
-    2.2.4
+    2.3.0
   
   
     
diff --git a/grpc-google-cloud-websecurityscanner-v1beta/pom.xml b/grpc-google-cloud-websecurityscanner-v1beta/pom.xml
index f760cf31..2bba3434 100644
--- a/grpc-google-cloud-websecurityscanner-v1beta/pom.xml
+++ b/grpc-google-cloud-websecurityscanner-v1beta/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-websecurityscanner-v1beta
-  0.89.4
+  0.90.0
   grpc-google-cloud-websecurityscanner-v1beta
   GRPC library for grpc-google-cloud-websecurityscanner-v1beta
   
     com.google.cloud
     google-cloud-websecurityscanner-parent
-    2.2.4
+    2.3.0
   
   
     
diff --git a/pom.xml b/pom.xml
index 531d03c3..101daa09 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
   com.google.cloud
   google-cloud-websecurityscanner-parent
   pom
-  2.2.4
+  2.3.0
   Google Cloud Web Security Scanner Parent
   https://github.com/googleapis/java-websecurityscanner
   
@@ -61,43 +61,43 @@
       
         com.google.api.grpc
         proto-google-cloud-websecurityscanner-v1alpha
-        0.89.4
+        0.90.0
       
       
         com.google.api.grpc
         proto-google-cloud-websecurityscanner-v1beta
-        0.89.4
+        0.90.0
       
       
         com.google.api.grpc
         proto-google-cloud-websecurityscanner-v1
-        2.2.4
+        2.3.0
       
       
         com.google.api.grpc
         grpc-google-cloud-websecurityscanner-v1alpha
-        0.89.4
+        0.90.0
       
       
         com.google.api.grpc
         grpc-google-cloud-websecurityscanner-v1beta
-        0.89.4
+        0.90.0
       
       
         com.google.api.grpc
         grpc-google-cloud-websecurityscanner-v1
-        2.2.4
+        2.3.0
       
       
         com.google.cloud
         google-cloud-websecurityscanner
-        2.2.4
+        2.3.0
       
 
       
         com.google.cloud
         google-cloud-shared-dependencies
-        3.0.3
+        3.0.4
         pom
         import
       
@@ -111,7 +111,7 @@
       
         joda-time
         joda-time
-        2.11.1
+        2.11.2
         test
       
     
diff --git a/proto-google-cloud-websecurityscanner-v1/pom.xml b/proto-google-cloud-websecurityscanner-v1/pom.xml
index 0064209a..b7269fd6 100644
--- a/proto-google-cloud-websecurityscanner-v1/pom.xml
+++ b/proto-google-cloud-websecurityscanner-v1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-cloud-websecurityscanner-v1
-  2.2.4
+  2.3.0
   proto-google-cloud-websecurityscanner-v1
   PROTO library for proto-google-cloud-websecurityscanner-v1
   
     com.google.cloud
     google-cloud-websecurityscanner-parent
-    2.2.4
+    2.3.0
   
   
     
diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java
index 366a26a4..ab252302 100644
--- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java
+++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java
@@ -56,66 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
 
-  private CrawledUrl(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              httpMethod_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              url_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              body_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
-            }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (com.google.protobuf.UninitializedMessageException e) {
-      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
         .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
@@ -303,7 +243,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, body_);
     }
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -321,7 +261,7 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, body_);
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -340,7 +280,7 @@ public boolean equals(final java.lang.Object obj) {
     if (!getHttpMethod().equals(other.getHttpMethod())) return false;
     if (!getUrl().equals(other.getUrl())) return false;
     if (!getBody().equals(other.getBody())) return false;
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -357,7 +297,7 @@ public int hashCode() {
     hash = (53 * hash) + getUrl().hashCode();
     hash = (37 * hash) + BODY_FIELD_NUMBER;
     hash = (53 * hash) + getBody().hashCode();
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
@@ -488,17 +428,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.CrawledUrl.newBuilder()
-    private Builder() {
-      maybeForceBuilderInitialization();
-    }
+    private Builder() {}
 
     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
 
     @java.lang.Override
@@ -602,7 +535,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.CrawledUrl other
         body_ = other.body_;
         onChanged();
       }
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -617,18 +550,49 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.websecurityscanner.v1.CrawledUrl parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 10:
+              {
+                httpMethod_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                url_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 18
+            case 26:
+              {
+                body_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
+          } // switch (tag)
+        } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.CrawledUrl) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
 
@@ -987,7 +951,18 @@ public CrawledUrl parsePartialFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
-          return new CrawledUrl(input, extensionRegistry);
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
         }
       };
 
diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java
index ee5a13c4..ec60ef11 100644
--- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java
+++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java
@@ -52,69 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
 
-  private CreateScanConfigRequest(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              parent_ = s;
-              break;
-            }
-          case 18:
-            {
-              com.google.cloud.websecurityscanner.v1.ScanConfig.Builder subBuilder = null;
-              if (scanConfig_ != null) {
-                subBuilder = scanConfig_.toBuilder();
-              }
-              scanConfig_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.ScanConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(scanConfig_);
-                scanConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
-            }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (com.google.protobuf.UninitializedMessageException e) {
-      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto
         .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor;
@@ -249,7 +186,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (scanConfig_ != null) {
       output.writeMessage(2, getScanConfig());
     }
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -264,7 +201,7 @@ public int getSerializedSize() {
     if (scanConfig_ != null) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig());
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -285,7 +222,7 @@ public boolean equals(final java.lang.Object obj) {
     if (hasScanConfig()) {
       if (!getScanConfig().equals(other.getScanConfig())) return false;
     }
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -302,7 +239,7 @@ public int hashCode() {
       hash = (37 * hash) + SCAN_CONFIG_FIELD_NUMBER;
       hash = (53 * hash) + getScanConfig().hashCode();
     }
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
@@ -432,17 +369,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.newBuilder()
-    private Builder() {
-      maybeForceBuilderInitialization();
-    }
+    private Builder() {}
 
     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
 
     @java.lang.Override
@@ -548,7 +478,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.CreateScanConfig
       if (other.hasScanConfig()) {
         mergeScanConfig(other.getScanConfig());
       }
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -563,19 +493,43 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
+          } // switch (tag)
+        } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest)
-                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
 
@@ -910,7 +864,18 @@ public CreateScanConfigRequest parsePartialFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
-          return new CreateScanConfigRequest(input, extensionRegistry);
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
         }
       };
 
diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java
index 8e4e92cc..73358aac 100644
--- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java
+++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java
@@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
 
-  private DeleteScanConfigRequest(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              name_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
-            }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (com.google.protobuf.UninitializedMessageException e) {
-      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto
         .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor;
@@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -193,7 +147,7 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) {
         (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) obj;
 
     if (!getName().equals(other.getName())) return false;
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -223,7 +177,7 @@ public int hashCode() {
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + NAME_FIELD_NUMBER;
     hash = (53 * hash) + getName().hashCode();
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
@@ -353,17 +307,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.newBuilder()
-    private Builder() {
-      maybeForceBuilderInitialization();
-    }
+    private Builder() {}
 
     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
 
     @java.lang.Override
@@ -455,7 +402,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.DeleteScanConfig
         name_ = other.name_;
         onChanged();
       }
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -470,19 +417,37 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
+          } // switch (tag)
+        } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest)
-                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
 
@@ -631,7 +596,18 @@ public DeleteScanConfigRequest parsePartialFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
-          return new DeleteScanConfigRequest(input, extensionRegistry);
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
         }
       };
 
diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java
index 958b1bc5..6d9b01be 100644
--- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java
+++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java
@@ -63,222 +63,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
 
-  private Finding(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              findingType_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              httpMethod_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              fuzzedUrl_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              body_ = s;
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              description_ = s;
-              break;
-            }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              reproductionUrl_ = s;
-              break;
-            }
-          case 66:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              frameUrl_ = s;
-              break;
-            }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              finalUrl_ = s;
-              break;
-            }
-          case 82:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              trackingId_ = s;
-              break;
-            }
-          case 90:
-            {
-              com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder subBuilder = null;
-              if (outdatedLibrary_ != null) {
-                subBuilder = outdatedLibrary_.toBuilder();
-              }
-              outdatedLibrary_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.OutdatedLibrary.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outdatedLibrary_);
-                outdatedLibrary_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 98:
-            {
-              com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder subBuilder = null;
-              if (violatingResource_ != null) {
-                subBuilder = violatingResource_.toBuilder();
-              }
-              violatingResource_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.ViolatingResource.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(violatingResource_);
-                violatingResource_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 106:
-            {
-              com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder subBuilder = null;
-              if (vulnerableParameters_ != null) {
-                subBuilder = vulnerableParameters_.toBuilder();
-              }
-              vulnerableParameters_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.VulnerableParameters.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vulnerableParameters_);
-                vulnerableParameters_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 114:
-            {
-              com.google.cloud.websecurityscanner.v1.Xss.Builder subBuilder = null;
-              if (xss_ != null) {
-                subBuilder = xss_.toBuilder();
-              }
-              xss_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.Xss.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(xss_);
-                xss_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 122:
-            {
-              com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder subBuilder = null;
-              if (vulnerableHeaders_ != null) {
-                subBuilder = vulnerableHeaders_.toBuilder();
-              }
-              vulnerableHeaders_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.VulnerableHeaders.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vulnerableHeaders_);
-                vulnerableHeaders_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 130:
-            {
-              com.google.cloud.websecurityscanner.v1.Form.Builder subBuilder = null;
-              if (form_ != null) {
-                subBuilder = form_.toBuilder();
-              }
-              form_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.Form.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(form_);
-                form_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 136:
-            {
-              int rawValue = input.readEnum();
-
-              severity_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
-            }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (com.google.protobuf.UninitializedMessageException e) {
-      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.websecurityscanner.v1.FindingProto
         .internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
@@ -1345,6 +1129,58 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() {
     return getXss();
   }
 
+  public static final int XXE_FIELD_NUMBER = 18;
+  private com.google.cloud.websecurityscanner.v1.Xxe xxe_;
+  /**
+   *
+   *
+   * 
+   * Output only. An addon containing information reported for an XXE, if any.
+   * 
+ * + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the xxe field is set. + */ + @java.lang.Override + public boolean hasXxe() { + return xxe_ != null; + } + /** + * + * + *
+   * Output only. An addon containing information reported for an XXE, if any.
+   * 
+ * + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The xxe. + */ + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe getXxe() { + return xxe_ == null ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() : xxe_; + } + /** + * + * + *
+   * Output only. An addon containing information reported for an XXE, if any.
+   * 
+ * + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder() { + return getXxe(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1412,7 +1248,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(17, severity_); } - unknownFields.writeTo(output); + if (xxe_ != null) { + output.writeMessage(18, getXxe()); + } + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1475,7 +1314,10 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, severity_); } - size += unknownFields.getSerializedSize(); + if (xxe_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getXxe()); + } + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1526,7 +1368,11 @@ public boolean equals(final java.lang.Object obj) { if (hasXss()) { if (!getXss().equals(other.getXss())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (hasXxe() != other.hasXxe()) return false; + if (hasXxe()) { + if (!getXxe().equals(other.getXxe())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1583,7 +1429,11 @@ public int hashCode() { hash = (37 * hash) + XSS_FIELD_NUMBER; hash = (53 * hash) + getXss().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + if (hasXxe()) { + hash = (37 * hash) + XXE_FIELD_NUMBER; + hash = (53 * hash) + getXxe().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1713,17 +1563,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.Finding.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1787,6 +1630,12 @@ public Builder clear() { xss_ = null; xssBuilder_ = null; } + if (xxeBuilder_ == null) { + xxe_ = null; + } else { + xxe_ = null; + xxeBuilder_ = null; + } return this; } @@ -1855,6 +1704,11 @@ public com.google.cloud.websecurityscanner.v1.Finding buildPartial() { } else { result.xss_ = xssBuilder_.build(); } + if (xxeBuilder_ == null) { + result.xxe_ = xxe_; + } else { + result.xxe_ = xxeBuilder_.build(); + } onBuilt(); return result; } @@ -1965,7 +1819,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.Finding other) { if (other.hasXss()) { mergeXss(other.getXss()); } - this.mergeUnknownFields(other.unknownFields); + if (other.hasXxe()) { + mergeXxe(other.getXxe()); + } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1980,17 +1837,142 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.Finding parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + findingType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + httpMethod_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + fuzzedUrl_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + body_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + reproductionUrl_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + frameUrl_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + finalUrl_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + trackingId_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + input.readMessage(getOutdatedLibraryFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 90 + case 98: + { + input.readMessage( + getViolatingResourceFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 98 + case 106: + { + input.readMessage( + getVulnerableParametersFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 106 + case 114: + { + input.readMessage(getXssFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 114 + case 122: + { + input.readMessage( + getVulnerableHeadersFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 + case 130: + { + input.readMessage(getFormFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + case 136: + { + severity_ = input.readEnum(); + + break; + } // case 136 + case 146: + { + input.readMessage(getXxeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 146 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.Finding) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4371,6 +4353,209 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { return xssBuilder_; } + private com.google.cloud.websecurityscanner.v1.Xxe xxe_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Xxe, + com.google.cloud.websecurityscanner.v1.Xxe.Builder, + com.google.cloud.websecurityscanner.v1.XxeOrBuilder> + xxeBuilder_; + /** + * + * + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the xxe field is set. + */ + public boolean hasXxe() { + return xxeBuilder_ != null || xxe_ != null; + } + /** + * + * + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The xxe. + */ + public com.google.cloud.websecurityscanner.v1.Xxe getXxe() { + if (xxeBuilder_ == null) { + return xxe_ == null + ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() + : xxe_; + } else { + return xxeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setXxe(com.google.cloud.websecurityscanner.v1.Xxe value) { + if (xxeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + xxe_ = value; + onChanged(); + } else { + xxeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setXxe(com.google.cloud.websecurityscanner.v1.Xxe.Builder builderForValue) { + if (xxeBuilder_ == null) { + xxe_ = builderForValue.build(); + onChanged(); + } else { + xxeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeXxe(com.google.cloud.websecurityscanner.v1.Xxe value) { + if (xxeBuilder_ == null) { + if (xxe_ != null) { + xxe_ = + com.google.cloud.websecurityscanner.v1.Xxe.newBuilder(xxe_) + .mergeFrom(value) + .buildPartial(); + } else { + xxe_ = value; + } + onChanged(); + } else { + xxeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearXxe() { + if (xxeBuilder_ == null) { + xxe_ = null; + onChanged(); + } else { + xxe_ = null; + xxeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.websecurityscanner.v1.Xxe.Builder getXxeBuilder() { + + onChanged(); + return getXxeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder() { + if (xxeBuilder_ != null) { + return xxeBuilder_.getMessageOrBuilder(); + } else { + return xxe_ == null + ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() + : xxe_; + } + } + /** + * + * + *
+     * Output only. An addon containing information reported for an XXE, if any.
+     * 
+ * + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Xxe, + com.google.cloud.websecurityscanner.v1.Xxe.Builder, + com.google.cloud.websecurityscanner.v1.XxeOrBuilder> + getXxeFieldBuilder() { + if (xxeBuilder_ == null) { + xxeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Xxe, + com.google.cloud.websecurityscanner.v1.Xxe.Builder, + com.google.cloud.websecurityscanner.v1.XxeOrBuilder>( + getXxe(), getParentForChildren(), isClean()); + xxe_ = null; + } + return xxeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); @@ -4403,7 +4588,18 @@ public Finding parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java index cd63245f..e9428566 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java @@ -55,6 +55,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -89,14 +93,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "SSAGE\020\007\022\022\n\016GET_PARAMETERS\020\010\022\020\n\014URL_FRAGM" + "ENT\020\t\022\020\n\014HTML_COMMENT\020\n\022\023\n\017POST_PARAMETE" + "RS\020\013\022\014\n\010PROTOCOL\020\014\022\016\n\nSTORED_XSS\020\r\022\017\n\013SA" - + "ME_ORIGIN\020\016\022\031\n\025USER_CONTROLLABLE_URL\020\017B\205" - + "\002\n&com.google.cloud.websecurityscanner.v" - + "1B\021FindingAddonProtoP\001ZTgoogle.golang.or" - + "g/genproto/googleapis/cloud/websecuritys" - + "canner/v1;websecurityscanner\252\002\"Google.Cl" - + "oud.WebSecurityScanner.V1\312\002\"Google\\Cloud" - + "\\WebSecurityScanner\\V1\352\002%Google::Cloud::" - + "WebSecurityScanner::V1b\006proto3" + + "ME_ORIGIN\020\016\022\031\n\025USER_CONTROLLABLE_URL\020\017\"\251" + + "\001\n\003Xxe\022\025\n\rpayload_value\030\001 \001(\t\022J\n\020payload" + + "_location\030\002 \001(\01620.google.cloud.websecuri" + + "tyscanner.v1.Xxe.Location\"?\n\010Location\022\030\n" + + "\024LOCATION_UNSPECIFIED\020\000\022\031\n\025COMPLETE_REQU" + + "EST_BODY\020\001B\205\002\n&com.google.cloud.websecur" + + "ityscanner.v1B\021FindingAddonProtoP\001ZTgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "websecurityscanner/v1;websecurityscanner" + + "\252\002\"Google.Cloud.WebSecurityScanner.V1\312\002\"" + + "Google\\Cloud\\WebSecurityScanner\\V1\352\002%Goo" + + "gle::Cloud::WebSecurityScanner::V1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -159,6 +168,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "StackTraces", "ErrorMessage", "AttackVector", "StoredXssSeedingUrl", }); + internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor, + new java.lang.String[] { + "PayloadValue", "PayloadLocation", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java index 338bf2e8..74d9762b 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java @@ -542,4 +542,45 @@ public interface FindingOrBuilder * .google.cloud.websecurityscanner.v1.Xss xss = 14; */ com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder(); + + /** + * + * + *
+   * Output only. An addon containing information reported for an XXE, if any.
+   * 
+ * + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the xxe field is set. + */ + boolean hasXxe(); + /** + * + * + *
+   * Output only. An addon containing information reported for an XXE, if any.
+   * 
+ * + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The xxe. + */ + com.google.cloud.websecurityscanner.v1.Xxe getXxe(); + /** + * + * + *
+   * Output only. An addon containing information reported for an XXE, if any.
+   * 
+ * + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java index a94ab1eb..3a8e619a 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java @@ -45,7 +45,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ner.v1\032\037google/api/field_behavior.proto\032" + "\031google/api/resource.proto\0326google/cloud" + "/websecurityscanner/v1/finding_addon.pro" - + "to\"\261\007\n\007Finding\022\014\n\004name\030\001 \001(\t\022\024\n\014finding_" + + "to\"\354\007\n\007Finding\022\014\n\004name\030\001 \001(\t\022\024\n\014finding_" + "type\030\002 \001(\t\022K\n\010severity\030\021 \001(\01624.google.cl" + "oud.websecurityscanner.v1.Finding.Severi" + "tyB\003\340A\003\022\023\n\013http_method\030\003 \001(\t\022\022\n\nfuzzed_u" @@ -63,19 +63,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ble_parameters\030\r \001(\01328.google.cloud.webs" + "ecurityscanner.v1.VulnerableParameters\0224" + "\n\003xss\030\016 \001(\0132\'.google.cloud.websecuritysc" - + "anner.v1.Xss\"Q\n\010Severity\022\030\n\024SEVERITY_UNS" - + "PECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006ME" - + "DIUM\020\003\022\007\n\003LOW\020\004:\204\001\352A\200\001\n)websecurityscann" - + "er.googleapis.com/Finding\022Sprojects/{pro" - + "ject}/scanConfigs/{scan_config}/scanRuns" - + "/{scan_run}/findings/{finding}B\200\002\n&com.g" - + "oogle.cloud.websecurityscanner.v1B\014Findi" - + "ngProtoP\001ZTgoogle.golang.org/genproto/go" - + "ogleapis/cloud/websecurityscanner/v1;web" - + "securityscanner\252\002\"Google.Cloud.WebSecuri" - + "tyScanner.V1\312\002\"Google\\Cloud\\WebSecurityS" - + "canner\\V1\352\002%Google::Cloud::WebSecuritySc" - + "anner::V1b\006proto3" + + "anner.v1.Xss\0229\n\003xxe\030\022 \001(\0132\'.google.cloud" + + ".websecurityscanner.v1.XxeB\003\340A\003\"Q\n\010Sever" + + "ity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICA" + + "L\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004:\204\001\352A\200" + + "\001\n)websecurityscanner.googleapis.com/Fin" + + "ding\022Sprojects/{project}/scanConfigs/{sc" + + "an_config}/scanRuns/{scan_run}/findings/" + + "{finding}B\200\002\n&com.google.cloud.websecuri" + + "tyscanner.v1B\014FindingProtoP\001ZTgoogle.gol" + + "ang.org/genproto/googleapis/cloud/websec" + + "urityscanner/v1;websecurityscanner\252\002\"Goo" + + "gle.Cloud.WebSecurityScanner.V1\312\002\"Google" + + "\\Cloud\\WebSecurityScanner\\V1\352\002%Google::C" + + "loud::WebSecurityScanner::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -108,6 +109,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VulnerableHeaders", "VulnerableParameters", "Xss", + "Xxe", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java index f9240cef..deb80226 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java @@ -53,57 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FindingTypeStats( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - findingType_ = s; - break; - } - case 16: - { - findingCount_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor; @@ -206,7 +155,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (findingCount_ != 0) { output.writeInt32(2, findingCount_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -221,7 +170,7 @@ public int getSerializedSize() { if (findingCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, findingCount_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -239,7 +188,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFindingType().equals(other.getFindingType())) return false; if (getFindingCount() != other.getFindingCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,7 +203,7 @@ public int hashCode() { hash = (53 * hash) + getFindingType().hashCode(); hash = (37 * hash) + FINDING_COUNT_FIELD_NUMBER; hash = (53 * hash) + getFindingCount(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -385,17 +334,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.FindingTypeStats.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -491,7 +433,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.FindingTypeStats if (other.getFindingCount() != 0) { setFindingCount(other.getFindingCount()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -506,18 +448,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.FindingTypeStats parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + findingType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + findingCount_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.FindingTypeStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -711,7 +678,18 @@ public FindingTypeStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FindingTypeStats(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java index 82e5baad..6bead7ea 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Form( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - actionUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fields_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = fields_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; @@ -258,7 +198,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < fields_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fields_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -278,7 +218,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getFieldsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -296,7 +236,7 @@ public boolean equals(final java.lang.Object obj) { if (!getActionUri().equals(other.getActionUri())) return false; if (!getFieldsList().equals(other.getFieldsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,7 +253,7 @@ public int hashCode() { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + getFieldsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -442,17 +382,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.Form.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -559,7 +492,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.Form other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -574,17 +507,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.Form parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + actionUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFieldsIsMutable(); + fields_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.Form) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -896,7 +856,18 @@ public Form parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Form(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java index e66da3df..1c4fb93f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetFindingRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; @@ -183,7 +137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -195,7 +149,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -212,7 +166,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1.GetFindingRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,7 +179,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -355,17 +309,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.GetFindingRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -455,7 +402,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.GetFindingReques name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -470,18 +417,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.GetFindingRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.GetFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -633,7 +599,18 @@ public GetFindingRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFindingRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java index d5a7804d..40a6eb31 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetScanConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -353,17 +307,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -453,7 +400,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.GetScanConfigReq name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -468,18 +415,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -626,7 +592,18 @@ public GetScanConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanConfigRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java index 7e099644..504a4f51 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetScanRunRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; @@ -183,7 +137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -195,7 +149,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -212,7 +166,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,7 +179,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -355,17 +309,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.GetScanRunRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -455,7 +402,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.GetScanRunReques name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -470,18 +417,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.GetScanRunRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -633,7 +599,18 @@ public GetScanRunRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanRunRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java index bd693672..a8fb051c 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; @@ -275,7 +217,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -293,7 +235,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -312,7 +254,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getPageSize() != other.getPageSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -329,7 +271,7 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -459,17 +401,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -574,7 +509,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsR if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -589,19 +524,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -928,7 +893,18 @@ public ListCrawledUrlsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java index 493adc82..980ede02 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java @@ -53,69 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - crawledUrls_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.CrawledUrl.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; @@ -272,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -287,7 +224,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -305,7 +242,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCrawledUrlsList().equals(other.getCrawledUrlsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -322,7 +259,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -452,19 +389,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCrawledUrlsFieldBuilder(); - } } @java.lang.Override @@ -472,10 +400,11 @@ public Builder clear() { super.clear(); if (crawledUrlsBuilder_ == null) { crawledUrls_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + crawledUrls_ = null; crawledUrlsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -599,7 +528,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsR nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -614,19 +543,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1.CrawledUrl m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.CrawledUrl.parser(), + extensionRegistry); + if (crawledUrlsBuilder_ == null) { + ensureCrawledUrlsIsMutable(); + crawledUrls_.add(m); + } else { + crawledUrlsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1135,7 +1096,18 @@ public ListCrawledUrlsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java index 7b642cfe..d0414f50 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; @@ -183,7 +137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -195,7 +149,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -212,7 +166,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) obj; if (!getParent().equals(other.getParent())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,7 +179,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -357,17 +311,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -462,7 +409,7 @@ public Builder mergeFrom( parent_ = other.parent_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -477,19 +424,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -643,7 +608,18 @@ public ListFindingTypeStatsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java index adda8b2d..c5772100 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java @@ -52,63 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1.FindingTypeStats>(); - mutable_bitField0_ |= 0x00000001; - } - findingTypeStats_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.FindingTypeStats.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; @@ -217,7 +160,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < findingTypeStats_.size(); i++) { output.writeMessage(1, findingTypeStats_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -229,7 +172,7 @@ public int getSerializedSize() { for (int i = 0; i < findingTypeStats_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findingTypeStats_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -246,7 +189,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) obj; if (!getFindingTypeStatsList().equals(other.getFindingTypeStatsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -261,7 +204,7 @@ public int hashCode() { hash = (37 * hash) + FINDING_TYPE_STATS_FIELD_NUMBER; hash = (53 * hash) + getFindingTypeStatsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -393,19 +336,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFindingTypeStatsFieldBuilder(); - } } @java.lang.Override @@ -413,10 +347,11 @@ public Builder clear() { super.clear(); if (findingTypeStatsBuilder_ == null) { findingTypeStats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + findingTypeStats_ = null; findingTypeStatsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -536,7 +471,7 @@ public Builder mergeFrom( } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -551,19 +486,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1.FindingTypeStats m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.FindingTypeStats.parser(), + extensionRegistry); + if (findingTypeStatsBuilder_ == null) { + ensureFindingTypeStatsIsMutable(); + findingTypeStats_.add(m); + } else { + findingTypeStatsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -989,7 +950,18 @@ public ListFindingTypeStatsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java index 31fca16b..50bccb85 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java @@ -54,71 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListFindingsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; @@ -341,7 +276,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(4, pageSize_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -362,7 +297,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -382,7 +317,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFilter().equals(other.getFilter())) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getPageSize() != other.getPageSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -401,7 +336,7 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -531,17 +466,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ListFindingsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -651,7 +579,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingsRequ if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -666,18 +594,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ListFindingsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1124,7 +1089,18 @@ public ListFindingsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java index c21c582c..4b780be1 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java @@ -53,68 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListFindingsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - findings_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.Finding.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = java.util.Collections.unmodifiableList(findings_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; @@ -270,7 +208,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -285,7 +223,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -303,7 +241,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFindingsList().equals(other.getFindingsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -320,7 +258,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -450,19 +388,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ListFindingsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFindingsFieldBuilder(); - } } @java.lang.Override @@ -470,10 +399,11 @@ public Builder clear() { super.clear(); if (findingsBuilder_ == null) { findings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + findings_ = null; findingsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -595,7 +525,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingsResp nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -610,18 +540,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ListFindingsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1.Finding m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.Finding.parser(), extensionRegistry); + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(m); + } else { + findingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1121,7 +1083,18 @@ public ListFindingsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java index af5313b8..8e66bc2b 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListScanConfigsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; @@ -273,7 +215,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -291,7 +233,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -310,7 +252,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getPageSize() != other.getPageSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -327,7 +269,7 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -457,17 +399,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -572,7 +507,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanConfigsR if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -587,19 +522,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -921,7 +886,18 @@ public ListScanConfigsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java index 779fa701..1b8fbc47 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java @@ -53,69 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListScanConfigsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - scanConfigs_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; @@ -272,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -287,7 +224,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -305,7 +242,7 @@ public boolean equals(final java.lang.Object obj) { if (!getScanConfigsList().equals(other.getScanConfigsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -322,7 +259,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -452,19 +389,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getScanConfigsFieldBuilder(); - } } @java.lang.Override @@ -472,10 +400,11 @@ public Builder clear() { super.clear(); if (scanConfigsBuilder_ == null) { scanConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + scanConfigs_ = null; scanConfigsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -599,7 +528,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanConfigsR nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -614,19 +543,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1.ScanConfig m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), + extensionRegistry); + if (scanConfigsBuilder_ == null) { + ensureScanConfigsIsMutable(); + scanConfigs_.add(m); + } else { + scanConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1135,7 +1096,18 @@ public ListScanConfigsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java index f6629344..cf012851 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListScanRunsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; @@ -273,7 +215,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -291,7 +233,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -310,7 +252,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getPageSize() != other.getPageSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -327,7 +269,7 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -457,17 +399,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -570,7 +505,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanRunsRequ if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -585,18 +520,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -917,7 +883,18 @@ public ListScanRunsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java index 2525eb9f..554c21f0 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java @@ -53,68 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListScanRunsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanRuns_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - scanRuns_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanRun.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; @@ -270,7 +208,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -285,7 +223,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -303,7 +241,7 @@ public boolean equals(final java.lang.Object obj) { if (!getScanRunsList().equals(other.getScanRunsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -320,7 +258,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -450,19 +388,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getScanRunsFieldBuilder(); - } } @java.lang.Override @@ -470,10 +399,11 @@ public Builder clear() { super.clear(); if (scanRunsBuilder_ == null) { scanRuns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + scanRuns_ = null; scanRunsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -595,7 +525,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanRunsResp nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -610,18 +540,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1.ScanRun m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanRun.parser(), extensionRegistry); + if (scanRunsBuilder_ == null) { + ensureScanRunsIsMutable(); + scanRuns_.add(m); + } else { + scanRunsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1121,7 +1083,18 @@ public ListScanRunsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java index e0c24a29..6bac9950 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java @@ -54,73 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private OutdatedLibrary( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - libraryName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - learnMoreUrls_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - learnMoreUrls_ = learnMoreUrls_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; @@ -318,7 +251,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < learnMoreUrls_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, learnMoreUrls_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -341,7 +274,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getLearnMoreUrlsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -360,7 +293,7 @@ public boolean equals(final java.lang.Object obj) { if (!getLibraryName().equals(other.getLibraryName())) return false; if (!getVersion().equals(other.getVersion())) return false; if (!getLearnMoreUrlsList().equals(other.getLearnMoreUrlsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -379,7 +312,7 @@ public int hashCode() { hash = (37 * hash) + LEARN_MORE_URLS_FIELD_NUMBER; hash = (53 * hash) + getLearnMoreUrlsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -509,17 +442,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.OutdatedLibrary.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -634,7 +560,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.OutdatedLibrary } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -649,18 +575,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.OutdatedLibrary parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + libraryName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLearnMoreUrlsIsMutable(); + learnMoreUrls_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.OutdatedLibrary) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1078,7 +1036,18 @@ public OutdatedLibrary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OutdatedLibrary(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java index a7d9a82a..629471d1 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java @@ -58,157 +58,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ScanConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 24: - { - maxQps_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - startingUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - startingUrls_.add(s); - break; - } - case 42: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder subBuilder = - null; - if (authentication_ != null) { - subBuilder = authentication_.toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authentication_); - authentication_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - int rawValue = input.readEnum(); - - userAgent_ = rawValue; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - blacklistPatterns_.add(s); - break; - } - case 66: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder subBuilder = null; - if (schedule_ != null) { - subBuilder = schedule_.toBuilder(); - } - schedule_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schedule_); - schedule_ = subBuilder.buildPartial(); - } - - break; - } - case 80: - { - int rawValue = input.readEnum(); - - exportToSecurityCommandCenter_ = rawValue; - break; - } - case 96: - { - int rawValue = input.readEnum(); - - riskLevel_ = rawValue; - break; - } - case 104: - { - managedScan_ = input.readBool(); - break; - } - case 112: - { - staticIpScan_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - startingUrls_ = startingUrls_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - blacklistPatterns_ = blacklistPatterns_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; @@ -743,11 +592,14 @@ public interface AuthenticationOrBuilder *
* * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; * * + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return Whether the googleAccount field is set. */ + @java.lang.Deprecated boolean hasGoogleAccount(); /** * @@ -757,11 +609,14 @@ public interface AuthenticationOrBuilder *
* * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; * * + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return The googleAccount. */ + @java.lang.Deprecated com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount(); /** @@ -772,9 +627,10 @@ public interface AuthenticationOrBuilder *
* * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; * */ + @java.lang.Deprecated com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder(); @@ -899,126 +755,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Authentication( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 1) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 1; - break; - } - case 18: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 2) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 2; - break; - } - case 34: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .Builder - subBuilder = null; - if (authenticationCase_ == 4) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 4; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; @@ -1034,6 +770,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder.class); } + @java.lang.Deprecated public interface GoogleAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) @@ -1101,6 +838,7 @@ public interface GoogleAccountOrBuilder * Protobuf type {@code * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} */ + @java.lang.Deprecated public static final class GoogleAccount extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) @@ -1127,60 +865,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GoogleAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; @@ -1318,7 +1002,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1333,7 +1017,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1353,7 +1037,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUsername().equals(other.getUsername())) return false; if (!getPassword().equals(other.getPassword())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1368,7 +1052,7 @@ public int hashCode() { hash = (53 * hash) + getUsername().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1513,17 +1197,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1634,7 +1311,7 @@ public Builder mergeFrom( password_ = other.password_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1649,20 +1326,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + username_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1920,7 +1620,19 @@ public GoogleAccount parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GoogleAccount(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -2059,67 +1771,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CustomAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - loginUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; @@ -2309,7 +1960,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loginUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, loginUrl_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2327,7 +1978,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loginUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, loginUrl_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2348,7 +1999,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUsername().equals(other.getUsername())) return false; if (!getPassword().equals(other.getPassword())) return false; if (!getLoginUrl().equals(other.getLoginUrl())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2365,7 +2016,7 @@ public int hashCode() { hash = (53 * hash) + getPassword().hashCode(); hash = (37 * hash) + LOGIN_URL_FIELD_NUMBER; hash = (53 * hash) + getLoginUrl().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2510,17 +2161,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -2638,7 +2282,7 @@ public Builder mergeFrom( loginUrl_ = other.loginUrl_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2653,20 +2297,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + username_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + loginUrl_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3030,7 +2703,19 @@ public CustomAccount parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomAccount(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -3140,73 +2825,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private IapCredential( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder - subBuilder = null; - if (iapCredentialsCase_ == 1) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo) - iapCredentials_) - .toBuilder(); - } - iapCredentials_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo) - iapCredentials_); - iapCredentials_ = subBuilder.buildPartial(); - } - iapCredentialsCase_ = 1; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; @@ -3296,53 +2914,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private IapTestServiceAccountInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - targetAudienceClientId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; @@ -3431,7 +3002,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetAudienceClientId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetAudienceClientId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3445,7 +3016,7 @@ public int getSerializedSize() { com.google.protobuf.GeneratedMessageV3.computeStringSize( 1, targetAudienceClientId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3469,7 +3040,7 @@ public boolean equals(final java.lang.Object obj) { obj; if (!getTargetAudienceClientId().equals(other.getTargetAudienceClientId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3482,7 +3053,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TARGET_AUDIENCE_CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getTargetAudienceClientId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -3644,17 +3215,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -3768,7 +3332,7 @@ public Builder mergeFrom( targetAudienceClientId_ = other.targetAudienceClientId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3783,22 +3347,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + targetAudienceClientId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3957,7 +3536,19 @@ public IapTestServiceAccountInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new IapTestServiceAccountInfo(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -4113,7 +3704,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .IapTestServiceAccountInfo) iapCredentials_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -4130,7 +3721,7 @@ public int getSerializedSize() { .IapTestServiceAccountInfo) iapCredentials_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -4157,7 +3748,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4176,7 +3767,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -4321,22 +3912,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); + if (iapTestServiceAccountInfoBuilder_ != null) { + iapTestServiceAccountInfoBuilder_.clear(); + } iapCredentialsCase_ = 0; iapCredentials_ = null; return this; @@ -4449,7 +4036,7 @@ public Builder mergeFrom( break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -4464,20 +4051,38 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getIapTestServiceAccountInfoFieldBuilder().getBuilder(), extensionRegistry); + iapCredentialsCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4808,7 +4413,19 @@ public IapCredential parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new IapCredential(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -4835,6 +4452,7 @@ public enum AuthenticationCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { + @java.lang.Deprecated GOOGLE_ACCOUNT(1), CUSTOM_ACCOUNT(2), IAP_CREDENTIAL(4), @@ -4887,12 +4505,15 @@ public AuthenticationCase getAuthenticationCase() { *
* * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; * * + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return Whether the googleAccount field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasGoogleAccount() { return authenticationCase_ == 1; } @@ -4904,12 +4525,15 @@ public boolean hasGoogleAccount() { *
* * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; * * + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return The googleAccount. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (authenticationCase_ == 1) { @@ -4927,10 +4551,11 @@ public boolean hasGoogleAccount() { *
* * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if (authenticationCase_ == 1) { @@ -5099,7 +4724,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -5129,7 +4754,7 @@ public int getSerializedSize() { (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -5159,7 +4784,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5186,7 +4811,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -5320,22 +4945,24 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); + if (googleAccountBuilder_ != null) { + googleAccountBuilder_.clear(); + } + if (customAccountBuilder_ != null) { + customAccountBuilder_.clear(); + } + if (iapCredentialBuilder_ != null) { + iapCredentialBuilder_.clear(); + } authenticationCase_ = 0; authentication_ = null; return this; @@ -5465,7 +5092,7 @@ public Builder mergeFrom( break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -5480,19 +5107,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGoogleAccountFieldBuilder().getBuilder(), extensionRegistry); + authenticationCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomAccountFieldBuilder().getBuilder(), extensionRegistry); + authenticationCase_ = 2; + break; + } // case 18 + case 34: + { + input.readMessage(getIapCredentialFieldBuilder().getBuilder(), extensionRegistry); + authenticationCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -5525,12 +5182,15 @@ public Builder clearAuthentication() { *
* * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; * * + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return Whether the googleAccount field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasGoogleAccount() { return authenticationCase_ == 1; } @@ -5542,12 +5202,15 @@ public boolean hasGoogleAccount() { *
* * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; * * + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return The googleAccount. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (googleAccountBuilder_ == null) { @@ -5573,9 +5236,10 @@ public boolean hasGoogleAccount() { *
* * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setGoogleAccount( com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { @@ -5598,9 +5262,10 @@ public Builder setGoogleAccount( *
* * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setGoogleAccount( com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder builderForValue) { @@ -5621,9 +5286,10 @@ public Builder setGoogleAccount( *
* * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; * */ + @java.lang.Deprecated public Builder mergeGoogleAccount( com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { @@ -5661,9 +5327,10 @@ public Builder mergeGoogleAccount( *
* * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; * */ + @java.lang.Deprecated public Builder clearGoogleAccount() { if (googleAccountBuilder_ == null) { if (authenticationCase_ == 1) { @@ -5688,9 +5355,10 @@ public Builder clearGoogleAccount() { *
* * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder getGoogleAccountBuilder() { return getGoogleAccountFieldBuilder().getBuilder(); @@ -5703,10 +5371,11 @@ public Builder clearGoogleAccount() { *
* * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if ((authenticationCase_ == 1) && (googleAccountBuilder_ != null)) { @@ -5728,7 +5397,7 @@ public Builder clearGoogleAccount() { *
* * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -6304,7 +5973,19 @@ public Authentication parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Authentication(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -6418,65 +6099,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Schedule( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; - } - case 16: - { - intervalDurationDays_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; @@ -6587,7 +6209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (intervalDurationDays_ != 0) { output.writeInt32(2, intervalDurationDays_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -6602,7 +6224,7 @@ public int getSerializedSize() { if (intervalDurationDays_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, intervalDurationDays_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -6623,7 +6245,7 @@ public boolean equals(final java.lang.Object obj) { if (!getScheduleTime().equals(other.getScheduleTime())) return false; } if (getIntervalDurationDays() != other.getIntervalDurationDays()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6640,7 +6262,7 @@ public int hashCode() { } hash = (37 * hash) + INTERVAL_DURATION_DAYS_FIELD_NUMBER; hash = (53 * hash) + getIntervalDurationDays(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -6772,17 +6394,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -6889,7 +6504,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Sched if (other.getIntervalDurationDays() != 0) { setIntervalDurationDays(other.getIntervalDurationDays()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -6904,18 +6519,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 16: + { + intervalDurationDays_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -7217,7 +6857,19 @@ public Schedule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -7747,6 +7399,24 @@ public boolean getStaticIpScan() { return staticIpScan_; } + public static final int IGNORE_HTTP_STATUS_ERRORS_FIELD_NUMBER = 15; + private boolean ignoreHttpStatusErrors_; + /** + * + * + *
+   * Whether to keep scanning even if most requests return HTTP error codes.
+   * 
+ * + * bool ignore_http_status_errors = 15; + * + * @return The ignoreHttpStatusErrors. + */ + @java.lang.Override + public boolean getIgnoreHttpStatusErrors() { + return ignoreHttpStatusErrors_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -7804,7 +7474,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (staticIpScan_ != false) { output.writeBool(14, staticIpScan_); } - unknownFields.writeTo(output); + if (ignoreHttpStatusErrors_ != false) { + output.writeBool(15, ignoreHttpStatusErrors_); + } + getUnknownFields().writeTo(output); } @java.lang.Override @@ -7867,7 +7540,10 @@ public int getSerializedSize() { if (staticIpScan_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, staticIpScan_); } - size += unknownFields.getSerializedSize(); + if (ignoreHttpStatusErrors_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, ignoreHttpStatusErrors_); + } + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -7901,7 +7577,8 @@ public boolean equals(final java.lang.Object obj) { if (riskLevel_ != other.riskLevel_) return false; if (getManagedScan() != other.getManagedScan()) return false; if (getStaticIpScan() != other.getStaticIpScan()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (getIgnoreHttpStatusErrors() != other.getIgnoreHttpStatusErrors()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7944,7 +7621,9 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManagedScan()); hash = (37 * hash) + STATIC_IP_SCAN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStaticIpScan()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (37 * hash) + IGNORE_HTTP_STATUS_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreHttpStatusErrors()); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -8073,17 +7752,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -8121,6 +7793,8 @@ public Builder clear() { staticIpScan_ = false; + ignoreHttpStatusErrors_ = false; + return this; } @@ -8177,6 +7851,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig buildPartial() { result.riskLevel_ = riskLevel_; result.managedScan_ = managedScan_; result.staticIpScan_ = staticIpScan_; + result.ignoreHttpStatusErrors_ = ignoreHttpStatusErrors_; onBuilt(); return result; } @@ -8279,7 +7954,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig other if (other.getStaticIpScan() != false) { setStaticIpScan(other.getStaticIpScan()); } - this.mergeUnknownFields(other.unknownFields); + if (other.getIgnoreHttpStatusErrors() != false) { + setIgnoreHttpStatusErrors(other.getIgnoreHttpStatusErrors()); + } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -8294,18 +7972,111 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + maxQps_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStartingUrlsIsMutable(); + startingUrls_.add(s); + break; + } // case 34 + case 42: + { + input.readMessage(getAuthenticationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + userAgent_ = input.readEnum(); + + break; + } // case 48 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureBlacklistPatternsIsMutable(); + blacklistPatterns_.add(s); + break; + } // case 58 + case 66: + { + input.readMessage(getScheduleFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 80: + { + exportToSecurityCommandCenter_ = input.readEnum(); + + break; + } // case 80 + case 96: + { + riskLevel_ = input.readEnum(); + + break; + } // case 96 + case 104: + { + managedScan_ = input.readBool(); + + break; + } // case 104 + case 112: + { + staticIpScan_ = input.readBool(); + + break; + } // case 112 + case 120: + { + ignoreHttpStatusErrors_ = input.readBool(); + + break; + } // case 120 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -9743,6 +9514,58 @@ public Builder clearStaticIpScan() { return this; } + private boolean ignoreHttpStatusErrors_; + /** + * + * + *
+     * Whether to keep scanning even if most requests return HTTP error codes.
+     * 
+ * + * bool ignore_http_status_errors = 15; + * + * @return The ignoreHttpStatusErrors. + */ + @java.lang.Override + public boolean getIgnoreHttpStatusErrors() { + return ignoreHttpStatusErrors_; + } + /** + * + * + *
+     * Whether to keep scanning even if most requests return HTTP error codes.
+     * 
+ * + * bool ignore_http_status_errors = 15; + * + * @param value The ignoreHttpStatusErrors to set. + * @return This builder for chaining. + */ + public Builder setIgnoreHttpStatusErrors(boolean value) { + + ignoreHttpStatusErrors_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to keep scanning even if most requests return HTTP error codes.
+     * 
+ * + * bool ignore_http_status_errors = 15; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreHttpStatusErrors() { + + ignoreHttpStatusErrors_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); @@ -9775,7 +9598,18 @@ public ScanConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java index cbde79d4..d1662ad0 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java @@ -56,59 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ScanConfigError( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - code_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - fieldName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor; @@ -1337,7 +1284,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldName_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1354,7 +1301,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldName_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1372,7 +1319,7 @@ public boolean equals(final java.lang.Object obj) { if (code_ != other.code_) return false; if (!getFieldName().equals(other.getFieldName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1387,7 +1334,7 @@ public int hashCode() { hash = (53 * hash) + code_; hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; hash = (53 * hash) + getFieldName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1520,17 +1467,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ScanConfigError.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1626,7 +1566,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfigError fieldName_ = other.fieldName_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1641,18 +1581,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfigError parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + code_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + fieldName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfigError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1902,7 +1867,18 @@ public ScanConfigError parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfigError(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java index 32718b4f..f0888437 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java @@ -382,4 +382,17 @@ public interface ScanConfigOrBuilder * @return The staticIpScan. */ boolean getStaticIpScan(); + + /** + * + * + *
+   * Whether to keep scanning even if most requests return HTTP error codes.
+   * 
+ * + * bool ignore_http_status_errors = 15; + * + * @return The ignoreHttpStatusErrors. + */ + boolean getIgnoreHttpStatusErrors(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java index 8849902c..d68805f2 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java @@ -67,7 +67,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n4google/cloud/websecurityscanner/v1/sca" + "n_config.proto\022\"google.cloud.websecurity" + "scanner.v1\032\037google/api/field_behavior.pr" - + "oto\032\037google/protobuf/timestamp.proto\"\231\r\n" + + "oto\032\037google/protobuf/timestamp.proto\"\304\r\n" + "\nScanConfig\022\014\n\004name\030\001 \001(\t\022\024\n\014display_nam" + "e\030\002 \001(\t\022\017\n\007max_qps\030\003 \001(\005\022\025\n\rstarting_url" + "s\030\004 \003(\t\022U\n\016authentication\030\005 \001(\0132=.google" @@ -83,40 +83,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "risk_level\030\014 \001(\01628.google.cloud.websecur" + "ityscanner.v1.ScanConfig.RiskLevel\022\024\n\014ma" + "naged_scan\030\r \001(\010\022\026\n\016static_ip_scan\030\016 \001(\010" - + "\032\317\005\n\016Authentication\022e\n\016google_account\030\001 " - + "\001(\0132K.google.cloud.websecurityscanner.v1" - + ".ScanConfig.Authentication.GoogleAccount" - + "H\000\022e\n\016custom_account\030\002 \001(\0132K.google.clou" - + "d.websecurityscanner.v1.ScanConfig.Authe" - + "ntication.CustomAccountH\000\022e\n\016iap_credent" - + "ial\030\004 \001(\0132K.google.cloud.websecurityscan" - + "ner.v1.ScanConfig.Authentication.IapCred" - + "entialH\000\0323\n\rGoogleAccount\022\020\n\010username\030\001 " - + "\001(\t\022\020\n\010password\030\002 \001(\t\032F\n\rCustomAccount\022\020" - + "\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n\tlo" - + "gin_url\030\003 \001(\t\032\370\001\n\rIapCredential\022\216\001\n\035iap_" - + "test_service_account_info\030\001 \001(\0132e.google" - + ".cloud.websecurityscanner.v1.ScanConfig." - + "Authentication.IapCredential.IapTestServ" - + "iceAccountInfoH\000\032C\n\031IapTestServiceAccoun" - + "tInfo\022&\n\031target_audience_client_id\030\001 \001(\t" - + "B\003\340A\002B\021\n\017iap_credentialsB\020\n\016authenticati" - + "on\032]\n\010Schedule\0221\n\rschedule_time\030\001 \001(\0132\032." - + "google.protobuf.Timestamp\022\036\n\026interval_du" - + "ration_days\030\002 \001(\005\"`\n\tUserAgent\022\032\n\026USER_A" - + "GENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX\020\001\022\022\n\016" - + "CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020\003\"<\n\tR" - + "iskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED\020\000\022\n\n\006" - + "NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecurityCom" - + "mandCenter\0221\n-EXPORT_TO_SECURITY_COMMAND" - + "_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DI" - + "SABLED\020\002B\203\002\n&com.google.cloud.websecurit" - + "yscanner.v1B\017ScanConfigProtoP\001ZTgoogle.g" - + "olang.org/genproto/googleapis/cloud/webs" - + "ecurityscanner/v1;websecurityscanner\252\002\"G" - + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" - + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" - + ":Cloud::WebSecurityScanner::V1b\006proto3" + + "\022!\n\031ignore_http_status_errors\030\017 \001(\010\032\327\005\n\016" + + "Authentication\022i\n\016google_account\030\001 \001(\0132K" + + ".google.cloud.websecurityscanner.v1.Scan" + + "Config.Authentication.GoogleAccountB\002\030\001H" + + "\000\022e\n\016custom_account\030\002 \001(\0132K.google.cloud" + + ".websecurityscanner.v1.ScanConfig.Authen" + + "tication.CustomAccountH\000\022e\n\016iap_credenti" + + "al\030\004 \001(\0132K.google.cloud.websecurityscann" + + "er.v1.ScanConfig.Authentication.IapCrede" + + "ntialH\000\0327\n\rGoogleAccount\022\020\n\010username\030\001 \001" + + "(\t\022\020\n\010password\030\002 \001(\t:\002\030\001\032F\n\rCustomAccoun" + + "t\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n" + + "\tlogin_url\030\003 \001(\t\032\370\001\n\rIapCredential\022\216\001\n\035i" + + "ap_test_service_account_info\030\001 \001(\0132e.goo" + + "gle.cloud.websecurityscanner.v1.ScanConf" + + "ig.Authentication.IapCredential.IapTestS" + + "erviceAccountInfoH\000\032C\n\031IapTestServiceAcc" + + "ountInfo\022&\n\031target_audience_client_id\030\001 " + + "\001(\tB\003\340A\002B\021\n\017iap_credentialsB\020\n\016authentic" + + "ation\032]\n\010Schedule\0221\n\rschedule_time\030\001 \001(\013" + + "2\032.google.protobuf.Timestamp\022\036\n\026interval" + + "_duration_days\030\002 \001(\005\"`\n\tUserAgent\022\032\n\026USE" + + "R_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX\020\001\022" + + "\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020\003\"<" + + "\n\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED\020\000\022" + + "\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecurity" + + "CommandCenter\0221\n-EXPORT_TO_SECURITY_COMM" + + "AND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n" + + "\010DISABLED\020\002B\203\002\n&com.google.cloud.websecu" + + "rityscanner.v1B\017ScanConfigProtoP\001ZTgoogl" + + "e.golang.org/genproto/googleapis/cloud/w" + + "ebsecurityscanner/v1;websecurityscanner\252" + + "\002\"Google.Cloud.WebSecurityScanner.V1\312\002\"G" + + "oogle\\Cloud\\WebSecurityScanner\\V1\352\002%Goog" + + "le::Cloud::WebSecurityScanner::V1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -143,6 +145,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RiskLevel", "ManagedScan", "StaticIpScan", + "IgnoreHttpStatusErrors", }); internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor = internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java index 310c9694..7b78471c 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java @@ -56,151 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ScanRun( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - executionState_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - resultState_ = rawValue; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - urlsCrawledCount_ = input.readInt64(); - break; - } - case 56: - { - urlsTestedCount_ = input.readInt64(); - break; - } - case 64: - { - hasVulnerabilities_ = input.readBool(); - break; - } - case 72: - { - progressPercent_ = input.readInt32(); - break; - } - case 82: - { - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder subBuilder = null; - if (errorTrace_ != null) { - subBuilder = errorTrace_.toBuilder(); - } - errorTrace_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(errorTrace_); - errorTrace_ = subBuilder.buildPartial(); - } - - break; - } - case 90: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - warningTraces_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace>(); - mutable_bitField0_ |= 0x00000001; - } - warningTraces_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - warningTraces_ = java.util.Collections.unmodifiableList(warningTraces_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanRunProto .internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor; @@ -1063,7 +918,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < warningTraces_.size(); i++) { output.writeMessage(11, warningTraces_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1109,7 +964,7 @@ public int getSerializedSize() { for (int i = 0; i < warningTraces_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, warningTraces_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1145,7 +1000,7 @@ public boolean equals(final java.lang.Object obj) { if (!getErrorTrace().equals(other.getErrorTrace())) return false; } if (!getWarningTracesList().equals(other.getWarningTracesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1186,7 +1041,7 @@ public int hashCode() { hash = (37 * hash) + WARNING_TRACES_FIELD_NUMBER; hash = (53 * hash) + getWarningTracesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1316,19 +1171,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ScanRun.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getWarningTracesFieldBuilder(); - } } @java.lang.Override @@ -1368,10 +1214,11 @@ public Builder clear() { } if (warningTracesBuilder_ == null) { warningTraces_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + warningTraces_ = null; warningTracesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -1538,7 +1385,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRun other) { } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1553,17 +1400,105 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanRun parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + executionState_ = input.readEnum(); + + break; + } // case 16 + case 24: + { + resultState_ = input.readEnum(); + + break; + } // case 24 + case 34: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + urlsCrawledCount_ = input.readInt64(); + + break; + } // case 48 + case 56: + { + urlsTestedCount_ = input.readInt64(); + + break; + } // case 56 + case 64: + { + hasVulnerabilities_ = input.readBool(); + + break; + } // case 64 + case 72: + { + progressPercent_ = input.readInt32(); + + break; + } // case 72 + case 82: + { + input.readMessage(getErrorTraceFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 90: + { + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.parser(), + extensionRegistry); + if (warningTracesBuilder_ == null) { + ensureWarningTracesIsMutable(); + warningTraces_.add(m); + } else { + warningTracesBuilder_.addMessage(m); + } + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanRun) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3090,7 +3025,18 @@ public ScanRun parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRun(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java index 9635019b..42f68eac 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java @@ -53,74 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ScanRunErrorTrace( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - code_ = rawValue; - break; - } - case 18: - { - com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder subBuilder = null; - if (scanConfigError_ != null) { - subBuilder = scanConfigError_.toBuilder(); - } - scanConfigError_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfigError.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfigError_); - scanConfigError_ = subBuilder.buildPartial(); - } - - break; - } - case 24: - { - mostCommonHttpErrorCode_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor; @@ -142,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Output only.
    * Defines an error reason code.
-   * Next id: 7
+   * Next id: 8
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code} @@ -533,7 +465,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (mostCommonHttpErrorCode_ != 0) { output.writeInt32(3, mostCommonHttpErrorCode_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -553,7 +485,7 @@ public int getSerializedSize() { if (mostCommonHttpErrorCode_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, mostCommonHttpErrorCode_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -575,7 +507,7 @@ public boolean equals(final java.lang.Object obj) { if (!getScanConfigError().equals(other.getScanConfigError())) return false; } if (getMostCommonHttpErrorCode() != other.getMostCommonHttpErrorCode()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -594,7 +526,7 @@ public int hashCode() { } hash = (37 * hash) + MOST_COMMON_HTTP_ERROR_CODE_FIELD_NUMBER; hash = (53 * hash) + getMostCommonHttpErrorCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -725,17 +657,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -844,7 +769,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrac if (other.getMostCommonHttpErrorCode() != 0) { setMostCommonHttpErrorCode(other.getMostCommonHttpErrorCode()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -859,18 +784,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + code_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + input.readMessage(getScanConfigErrorFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 24: + { + mostCommonHttpErrorCode_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1265,7 +1221,18 @@ public ScanRunErrorTrace parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunErrorTrace(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java index 41c4f179..eb54ce92 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java @@ -59,105 +59,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ScanRunLog( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - summary_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - executionState_ = rawValue; - break; - } - case 32: - { - int rawValue = input.readEnum(); - - resultState_ = rawValue; - break; - } - case 40: - { - urlsCrawledCount_ = input.readInt64(); - break; - } - case 48: - { - urlsTestedCount_ = input.readInt64(); - break; - } - case 56: - { - hasFindings_ = input.readBool(); - break; - } - case 66: - { - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder subBuilder = null; - if (errorTrace_ != null) { - subBuilder = errorTrace_.toBuilder(); - } - errorTrace_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(errorTrace_); - errorTrace_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanRunLogProto .internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor; @@ -454,7 +355,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (errorTrace_ != null) { output.writeMessage(8, getErrorTrace()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -491,7 +392,7 @@ public int getSerializedSize() { if (errorTrace_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getErrorTrace()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -518,7 +419,7 @@ public boolean equals(final java.lang.Object obj) { if (hasErrorTrace()) { if (!getErrorTrace().equals(other.getErrorTrace())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -547,7 +448,7 @@ public int hashCode() { hash = (37 * hash) + ERROR_TRACE_FIELD_NUMBER; hash = (53 * hash) + getErrorTrace().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -680,17 +581,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ScanRunLog.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -831,7 +725,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRunLog other if (other.hasErrorTrace()) { mergeErrorTrace(other.getErrorTrace()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -846,18 +740,79 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanRunLog parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + summary_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + executionState_ = input.readEnum(); + + break; + } // case 24 + case 32: + { + resultState_ = input.readEnum(); + + break; + } // case 32 + case 40: + { + urlsCrawledCount_ = input.readInt64(); + + break; + } // case 40 + case 48: + { + urlsTestedCount_ = input.readInt64(); + + break; + } // case 48 + case 56: + { + hasFindings_ = input.readBool(); + + break; + } // case 56 + case 66: + { + input.readMessage(getErrorTraceFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanRunLog) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1514,7 +1469,18 @@ public ScanRunLog parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunLog(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java index fd04b91e..71a084a5 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java @@ -54,52 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ScanRunWarningTrace( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - code_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor; @@ -182,6 +136,16 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * BLOCKED_BY_IAP = 4; */ BLOCKED_BY_IAP(4), + /** + * + * + *
+     * Indicates that no seeds is found for a scan
+     * 
+ * + * NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN = 5; + */ + NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN(5), UNRECOGNIZED(-1), ; @@ -240,6 +204,16 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * BLOCKED_BY_IAP = 4; */ public static final int BLOCKED_BY_IAP_VALUE = 4; + /** + * + * + *
+     * Indicates that no seeds is found for a scan
+     * 
+ * + * NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN = 5; + */ + public static final int NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -275,6 +249,8 @@ public static Code forNumber(int value) { return TOO_MANY_FUZZ_TASKS; case 4: return BLOCKED_BY_IAP; + case 5: + return NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN; default: return null; } @@ -387,7 +363,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, code_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -401,7 +377,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -418,7 +394,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) obj; if (code_ != other.code_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -431,7 +407,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + code_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -563,17 +539,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -662,7 +631,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRunWarningTr if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -677,18 +646,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + code_ = input.readEnum(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -817,7 +805,18 @@ public ScanRunWarningTrace parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunWarningTrace(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java index 76b7bee4..800c51ab 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java @@ -42,20 +42,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n?google/cloud/websecurityscanner/v1/sca" + "n_run_warning_trace.proto\022\"google.cloud." - + "websecurityscanner.v1\"\351\001\n\023ScanRunWarning" + + "websecurityscanner.v1\"\225\002\n\023ScanRunWarning" + "Trace\022J\n\004code\030\001 \001(\0162<.google.cloud.webse" + "curityscanner.v1.ScanRunWarningTrace.Cod" - + "e\"\205\001\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\036\n\032INSU" + + "e\"\261\001\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\036\n\032INSU" + "FFICIENT_CRAWL_RESULTS\020\001\022\032\n\026TOO_MANY_CRA" + "WL_RESULTS\020\002\022\027\n\023TOO_MANY_FUZZ_TASKS\020\003\022\022\n" - + "\016BLOCKED_BY_IAP\020\004B\214\002\n&com.google.cloud.w" - + "ebsecurityscanner.v1B\030ScanRunWarningTrac" - + "eProtoP\001ZTgoogle.golang.org/genproto/goo" - + "gleapis/cloud/websecurityscanner/v1;webs" - + "ecurityscanner\252\002\"Google.Cloud.WebSecurit" - + "yScanner.V1\312\002\"Google\\Cloud\\WebSecuritySc" - + "anner\\V1\352\002%Google::Cloud::WebSecuritySca" - + "nner::V1b\006proto3" + + "\016BLOCKED_BY_IAP\020\004\022*\n&NO_STARTING_URL_FOU" + + "ND_FOR_MANAGED_SCAN\020\005B\214\002\n&com.google.clo" + + "ud.websecurityscanner.v1B\030ScanRunWarning" + + "TraceProtoP\001ZTgoogle.golang.org/genproto" + + "/googleapis/cloud/websecurityscanner/v1;" + + "websecurityscanner\252\002\"Google.Cloud.WebSec" + + "urityScanner.V1\312\002\"Google\\Cloud\\WebSecuri" + + "tyScanner\\V1\352\002%Google::Cloud::WebSecurit" + + "yScanner::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java index 12f6290b..f619f33f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StartScanRunRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -353,17 +307,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.StartScanRunRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -453,7 +400,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.StartScanRunRequ name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -468,18 +415,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.StartScanRunRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -626,7 +592,18 @@ public StartScanRunRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StartScanRunRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java index 90dc6218..20961a15 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StopScanRunRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; @@ -183,7 +137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -195,7 +149,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -212,7 +166,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,7 +179,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -355,17 +309,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.StopScanRunRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -455,7 +402,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.StopScanRunReque name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -470,18 +417,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.StopScanRunRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -633,7 +599,18 @@ public StopScanRunRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StopScanRunRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java index 0564c177..2a2caabb 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java @@ -50,77 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateScanConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; @@ -262,7 +191,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(3, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -277,7 +206,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -301,7 +230,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateMask()) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -320,7 +249,7 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -450,17 +379,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -573,7 +495,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.UpdateScanConfig if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -588,19 +510,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1043,7 +989,18 @@ public UpdateScanConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateScanConfigRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java index 39b38306..fd850e34 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java @@ -54,59 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ViolatingResource( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - contentType_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - resourceUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor; @@ -240,7 +187,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceUrl_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -255,7 +202,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceUrl_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -273,7 +220,7 @@ public boolean equals(final java.lang.Object obj) { if (!getContentType().equals(other.getContentType())) return false; if (!getResourceUrl().equals(other.getResourceUrl())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -288,7 +235,7 @@ public int hashCode() { hash = (53 * hash) + getContentType().hashCode(); hash = (37 * hash) + RESOURCE_URL_FIELD_NUMBER; hash = (53 * hash) + getResourceUrl().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -419,17 +366,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.ViolatingResource.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -526,7 +466,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ViolatingResourc resourceUrl_ = other.resourceUrl_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -541,18 +481,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ViolatingResource parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + contentType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + resourceUrl_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ViolatingResource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -800,7 +765,18 @@ public ViolatingResource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ViolatingResource(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java index f1b41ec6..657cbfdd 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java @@ -53,80 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private VulnerableHeaders( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000001; - } - headers_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000002; - } - missingHeaders_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = java.util.Collections.unmodifiableList(headers_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = java.util.Collections.unmodifiableList(missingHeaders_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; @@ -232,59 +158,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Header( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; @@ -418,7 +291,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -433,7 +306,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -451,7 +324,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getValue().equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -466,7 +339,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -600,17 +473,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -712,7 +578,7 @@ public Builder mergeFrom( value_ = other.value_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -727,19 +593,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + value_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -990,7 +880,19 @@ public Header parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1186,7 +1088,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < missingHeaders_.size(); i++) { output.writeMessage(2, missingHeaders_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1201,7 +1103,7 @@ public int getSerializedSize() { for (int i = 0; i < missingHeaders_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, missingHeaders_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1219,7 +1121,7 @@ public boolean equals(final java.lang.Object obj) { if (!getHeadersList().equals(other.getHeadersList())) return false; if (!getMissingHeadersList().equals(other.getMissingHeadersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1238,7 +1140,7 @@ public int hashCode() { hash = (37 * hash) + MISSING_HEADERS_FIELD_NUMBER; hash = (53 * hash) + getMissingHeadersList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1368,20 +1270,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.VulnerableHeaders.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getHeadersFieldBuilder(); - getMissingHeadersFieldBuilder(); - } } @java.lang.Override @@ -1389,16 +1281,18 @@ public Builder clear() { super.clear(); if (headersBuilder_ == null) { headers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + headers_ = null; headersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (missingHeadersBuilder_ == null) { missingHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + missingHeaders_ = null; missingHeadersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1549,7 +1443,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableHeader } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1564,18 +1458,59 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.VulnerableHeaders parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), + extensionRegistry); + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.add(m); + } else { + headersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), + extensionRegistry); + if (missingHeadersBuilder_ == null) { + ensureMissingHeadersIsMutable(); + missingHeaders_.add(m); + } else { + missingHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.VulnerableHeaders) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2407,7 +2342,18 @@ public VulnerableHeaders parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableHeaders(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java index 86717048..a22edc52 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java @@ -52,59 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private VulnerableParameters( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameterNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - parameterNames_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - parameterNames_ = parameterNames_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; @@ -198,7 +145,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < parameterNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameterNames_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -215,7 +162,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getParameterNamesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -232,7 +179,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1.VulnerableParameters) obj; if (!getParameterNamesList().equals(other.getParameterNamesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,7 +194,7 @@ public int hashCode() { hash = (37 * hash) + PARAMETER_NAMES_FIELD_NUMBER; hash = (53 * hash) + getParameterNamesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -377,17 +324,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.VulnerableParameters.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -488,7 +428,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableParame } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -503,18 +443,38 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.VulnerableParameters parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureParameterNamesIsMutable(); + parameterNames_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.VulnerableParameters) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -720,7 +680,18 @@ public VulnerableParameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableParameters(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java index 0b550064..2c501a32 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java @@ -111,16 +111,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n=google/cloud/websecurityscanner/v1/web" + "_security_scanner.proto\022\"google.cloud.we" + "bsecurityscanner.v1\032\034google/api/annotati" - + "ons.proto\0324google/cloud/websecurityscann" - + "er/v1/crawled_url.proto\0320google/cloud/we" - + "bsecurityscanner/v1/finding.proto\032;googl" - + "e/cloud/websecurityscanner/v1/finding_ty" - + "pe_stats.proto\0324google/cloud/websecurity" - + "scanner/v1/scan_config.proto\0321google/clo" - + "ud/websecurityscanner/v1/scan_run.proto\032" - + "\033google/protobuf/empty.proto\032 google/pro" - + "tobuf/field_mask.proto\032\027google/api/clien" - + "t.proto\"n\n\027CreateScanConfigRequest\022\016\n\006pa" + + "ons.proto\032\027google/api/client.proto\0324goog" + + "le/cloud/websecurityscanner/v1/crawled_u" + + "rl.proto\0320google/cloud/websecurityscanne" + + "r/v1/finding.proto\032;google/cloud/websecu" + + "rityscanner/v1/finding_type_stats.proto\032" + + "4google/cloud/websecurityscanner/v1/scan" + + "_config.proto\0321google/cloud/websecuritys" + + "canner/v1/scan_run.proto\032\033google/protobu" + + "f/empty.proto\032 google/protobuf/field_mas" + + "k.proto\"n\n\027CreateScanConfigRequest\022\016\n\006pa" + "rent\030\001 \001(\t\022C\n\013scan_config\030\002 \001(\0132..google" + ".cloud.websecurityscanner.v1.ScanConfig\"" + "\'\n\027DeleteScanConfigRequest\022\014\n\004name\030\001 \001(\t" @@ -233,6 +233,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), com.google.cloud.websecurityscanner.v1.CrawledUrlProto.getDescriptor(), com.google.cloud.websecurityscanner.v1.FindingProto.getDescriptor(), com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.getDescriptor(), @@ -240,7 +241,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.websecurityscanner.v1.ScanRunProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), }); internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -394,6 +394,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); com.google.cloud.websecurityscanner.v1.CrawledUrlProto.getDescriptor(); com.google.cloud.websecurityscanner.v1.FindingProto.getDescriptor(); com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.getDescriptor(); @@ -401,7 +402,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.websecurityscanner.v1.ScanRunProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xss.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xss.java index 2e02942a..1b43462f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xss.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xss.java @@ -55,80 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Xss( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stackTraces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - stackTraces_.add(s); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - errorMessage_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - attackVector_ = rawValue; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - storedXssSeedingUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - stackTraces_ = stackTraces_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; @@ -814,7 +740,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storedXssSeedingUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storedXssSeedingUrl_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -842,7 +768,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storedXssSeedingUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storedXssSeedingUrl_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -862,7 +788,7 @@ public boolean equals(final java.lang.Object obj) { if (!getErrorMessage().equals(other.getErrorMessage())) return false; if (attackVector_ != other.attackVector_) return false; if (!getStoredXssSeedingUrl().equals(other.getStoredXssSeedingUrl())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -883,7 +809,7 @@ public int hashCode() { hash = (53 * hash) + attackVector_; hash = (37 * hash) + STORED_XSS_SEEDING_URL_FIELD_NUMBER; hash = (53 * hash) + getStoredXssSeedingUrl().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1012,17 +938,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1.Xss.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1142,7 +1061,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.Xss other) { storedXssSeedingUrl_ = other.storedXssSeedingUrl_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1157,17 +1076,56 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.Xss parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStackTracesIsMutable(); + stackTraces_.add(s); + break; + } // case 10 + case 18: + { + errorMessage_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + attackVector_ = input.readEnum(); + + break; + } // case 24 + case 34: + { + storedXssSeedingUrl_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.Xss) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1678,7 +1636,18 @@ public Xss parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Xss(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java new file mode 100644 index 00000000..0cdb8487 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java @@ -0,0 +1,911 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/finding_addon.proto + +package com.google.cloud.websecurityscanner.v1; + +/** + * + * + *
+ * Information reported for an XXE.
+ * 
+ * + * Protobuf type {@code google.cloud.websecurityscanner.v1.Xxe} + */ +public final class Xxe extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.Xxe) + XxeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Xxe.newBuilder() to construct. + private Xxe(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Xxe() { + payloadValue_ = ""; + payloadLocation_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Xxe(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.websecurityscanner.v1.Xxe.class, + com.google.cloud.websecurityscanner.v1.Xxe.Builder.class); + } + + /** + * + * + *
+   * Locations within a request where XML was substituted.
+   * 
+ * + * Protobuf enum {@code google.cloud.websecurityscanner.v1.Xxe.Location} + */ + public enum Location implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unknown Location.
+     * 
+ * + * LOCATION_UNSPECIFIED = 0; + */ + LOCATION_UNSPECIFIED(0), + /** + * + * + *
+     * The XML payload replaced the complete request body.
+     * 
+ * + * COMPLETE_REQUEST_BODY = 1; + */ + COMPLETE_REQUEST_BODY(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unknown Location.
+     * 
+ * + * LOCATION_UNSPECIFIED = 0; + */ + public static final int LOCATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The XML payload replaced the complete request body.
+     * 
+ * + * COMPLETE_REQUEST_BODY = 1; + */ + public static final int COMPLETE_REQUEST_BODY_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Location valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Location forNumber(int value) { + switch (value) { + case 0: + return LOCATION_UNSPECIFIED; + case 1: + return COMPLETE_REQUEST_BODY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Location findValueByNumber(int number) { + return Location.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.Xxe.getDescriptor().getEnumTypes().get(0); + } + + private static final Location[] VALUES = values(); + + public static Location valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Location(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.websecurityscanner.v1.Xxe.Location) + } + + public static final int PAYLOAD_VALUE_FIELD_NUMBER = 1; + private volatile java.lang.Object payloadValue_; + /** + * + * + *
+   * The XML string that triggered the XXE vulnerability. Non-payload values
+   * might be redacted.
+   * 
+ * + * string payload_value = 1; + * + * @return The payloadValue. + */ + @java.lang.Override + public java.lang.String getPayloadValue() { + java.lang.Object ref = payloadValue_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + payloadValue_ = s; + return s; + } + } + /** + * + * + *
+   * The XML string that triggered the XXE vulnerability. Non-payload values
+   * might be redacted.
+   * 
+ * + * string payload_value = 1; + * + * @return The bytes for payloadValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayloadValueBytes() { + java.lang.Object ref = payloadValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + payloadValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAYLOAD_LOCATION_FIELD_NUMBER = 2; + private int payloadLocation_; + /** + * + * + *
+   * Location within the request where the payload was placed.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * + * @return The enum numeric value on the wire for payloadLocation. + */ + @java.lang.Override + public int getPayloadLocationValue() { + return payloadLocation_; + } + /** + * + * + *
+   * Location within the request where the payload was placed.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * + * @return The payloadLocation. + */ + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation() { + @SuppressWarnings("deprecation") + com.google.cloud.websecurityscanner.v1.Xxe.Location result = + com.google.cloud.websecurityscanner.v1.Xxe.Location.valueOf(payloadLocation_); + return result == null + ? com.google.cloud.websecurityscanner.v1.Xxe.Location.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, payloadValue_); + } + if (payloadLocation_ + != com.google.cloud.websecurityscanner.v1.Xxe.Location.LOCATION_UNSPECIFIED.getNumber()) { + output.writeEnum(2, payloadLocation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, payloadValue_); + } + if (payloadLocation_ + != com.google.cloud.websecurityscanner.v1.Xxe.Location.LOCATION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, payloadLocation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.websecurityscanner.v1.Xxe)) { + return super.equals(obj); + } + com.google.cloud.websecurityscanner.v1.Xxe other = + (com.google.cloud.websecurityscanner.v1.Xxe) obj; + + if (!getPayloadValue().equals(other.getPayloadValue())) return false; + if (payloadLocation_ != other.payloadLocation_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAYLOAD_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getPayloadValue().hashCode(); + hash = (37 * hash) + PAYLOAD_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + payloadLocation_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.Xxe prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Information reported for an XXE.
+   * 
+ * + * Protobuf type {@code google.cloud.websecurityscanner.v1.Xxe} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.Xxe) + com.google.cloud.websecurityscanner.v1.XxeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.websecurityscanner.v1.Xxe.class, + com.google.cloud.websecurityscanner.v1.Xxe.Builder.class); + } + + // Construct using com.google.cloud.websecurityscanner.v1.Xxe.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + payloadValue_ = ""; + + payloadLocation_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe build() { + com.google.cloud.websecurityscanner.v1.Xxe result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe buildPartial() { + com.google.cloud.websecurityscanner.v1.Xxe result = + new com.google.cloud.websecurityscanner.v1.Xxe(this); + result.payloadValue_ = payloadValue_; + result.payloadLocation_ = payloadLocation_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.websecurityscanner.v1.Xxe) { + return mergeFrom((com.google.cloud.websecurityscanner.v1.Xxe) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.Xxe other) { + if (other == com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance()) return this; + if (!other.getPayloadValue().isEmpty()) { + payloadValue_ = other.payloadValue_; + onChanged(); + } + if (other.payloadLocation_ != 0) { + setPayloadLocationValue(other.getPayloadLocationValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + payloadValue_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + payloadLocation_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object payloadValue_ = ""; + /** + * + * + *
+     * The XML string that triggered the XXE vulnerability. Non-payload values
+     * might be redacted.
+     * 
+ * + * string payload_value = 1; + * + * @return The payloadValue. + */ + public java.lang.String getPayloadValue() { + java.lang.Object ref = payloadValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + payloadValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The XML string that triggered the XXE vulnerability. Non-payload values
+     * might be redacted.
+     * 
+ * + * string payload_value = 1; + * + * @return The bytes for payloadValue. + */ + public com.google.protobuf.ByteString getPayloadValueBytes() { + java.lang.Object ref = payloadValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + payloadValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The XML string that triggered the XXE vulnerability. Non-payload values
+     * might be redacted.
+     * 
+ * + * string payload_value = 1; + * + * @param value The payloadValue to set. + * @return This builder for chaining. + */ + public Builder setPayloadValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + payloadValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The XML string that triggered the XXE vulnerability. Non-payload values
+     * might be redacted.
+     * 
+ * + * string payload_value = 1; + * + * @return This builder for chaining. + */ + public Builder clearPayloadValue() { + + payloadValue_ = getDefaultInstance().getPayloadValue(); + onChanged(); + return this; + } + /** + * + * + *
+     * The XML string that triggered the XXE vulnerability. Non-payload values
+     * might be redacted.
+     * 
+ * + * string payload_value = 1; + * + * @param value The bytes for payloadValue to set. + * @return This builder for chaining. + */ + public Builder setPayloadValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + payloadValue_ = value; + onChanged(); + return this; + } + + private int payloadLocation_ = 0; + /** + * + * + *
+     * Location within the request where the payload was placed.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * + * @return The enum numeric value on the wire for payloadLocation. + */ + @java.lang.Override + public int getPayloadLocationValue() { + return payloadLocation_; + } + /** + * + * + *
+     * Location within the request where the payload was placed.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * + * @param value The enum numeric value on the wire for payloadLocation to set. + * @return This builder for chaining. + */ + public Builder setPayloadLocationValue(int value) { + + payloadLocation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Location within the request where the payload was placed.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * + * @return The payloadLocation. + */ + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation() { + @SuppressWarnings("deprecation") + com.google.cloud.websecurityscanner.v1.Xxe.Location result = + com.google.cloud.websecurityscanner.v1.Xxe.Location.valueOf(payloadLocation_); + return result == null + ? com.google.cloud.websecurityscanner.v1.Xxe.Location.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Location within the request where the payload was placed.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * + * @param value The payloadLocation to set. + * @return This builder for chaining. + */ + public Builder setPayloadLocation(com.google.cloud.websecurityscanner.v1.Xxe.Location value) { + if (value == null) { + throw new NullPointerException(); + } + + payloadLocation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Location within the request where the payload was placed.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * + * @return This builder for chaining. + */ + public Builder clearPayloadLocation() { + + payloadLocation_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.Xxe) + } + + // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.Xxe) + private static final com.google.cloud.websecurityscanner.v1.Xxe DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.Xxe(); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Xxe parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java new file mode 100644 index 00000000..07aefcab --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/finding_addon.proto + +package com.google.cloud.websecurityscanner.v1; + +public interface XxeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.Xxe) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The XML string that triggered the XXE vulnerability. Non-payload values
+   * might be redacted.
+   * 
+ * + * string payload_value = 1; + * + * @return The payloadValue. + */ + java.lang.String getPayloadValue(); + /** + * + * + *
+   * The XML string that triggered the XXE vulnerability. Non-payload values
+   * might be redacted.
+   * 
+ * + * string payload_value = 1; + * + * @return The bytes for payloadValue. + */ + com.google.protobuf.ByteString getPayloadValueBytes(); + + /** + * + * + *
+   * Location within the request where the payload was placed.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * + * @return The enum numeric value on the wire for payloadLocation. + */ + int getPayloadLocationValue(); + /** + * + * + *
+   * Location within the request where the payload was placed.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * + * @return The payloadLocation. + */ + com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation(); +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto index 37724b80..65fc000f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto +++ b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto index 32bd5d83..71fea950 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto +++ b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -116,4 +116,7 @@ message Finding { // Output only. An addon containing information reported for an XSS, if any. Xss xss = 14; + + // Output only. An addon containing information reported for an XXE, if any. + Xxe xxe = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto index 4fb7ec1d..1bcec8c7 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto +++ b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -145,3 +145,22 @@ message Xss { // The reproduction url for the seeding POST request of a Stored XSS. string stored_xss_seeding_url = 4; } + +// Information reported for an XXE. +message Xxe { + // Locations within a request where XML was substituted. + enum Location { + // Unknown Location. + LOCATION_UNSPECIFIED = 0; + + // The XML payload replaced the complete request body. + COMPLETE_REQUEST_BODY = 1; + } + + // The XML string that triggered the XXE vulnerability. Non-payload values + // might be redacted. + string payload_value = 1; + + // Location within the request where the payload was placed. + Location payload_location = 2; +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto index 7eca01ed..7999f76d 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto +++ b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto index 901d01e4..85641af2 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto +++ b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,8 @@ message ScanConfig { message Authentication { // Describes authentication configuration that uses a Google account. message GoogleAccount { + option deprecated = true; + // Required. The user name of the Google account. string username = 1; @@ -76,7 +78,7 @@ message ScanConfig { // Authentication configuration oneof authentication { // Authentication using a Google account. - GoogleAccount google_account = 1; + GoogleAccount google_account = 1 [deprecated = true]; // Authentication using a custom account. CustomAccount custom_account = 2; @@ -185,4 +187,7 @@ message ScanConfig { // Whether the scan configuration has enabled static IP address scan feature. // If enabled, the scanner will access applications from static IP addresses. bool static_ip_scan = 14; + + // Whether to keep scanning even if most requests return HTTP error codes. + bool ignore_http_status_errors = 15; } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto index 5d544578..5924f915 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto +++ b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto index 465c6cb6..71df3a04 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto +++ b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto index 5234eee2..0c41c143 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto +++ b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ option ruby_package = "Google::Cloud::WebSecurityScanner::V1"; message ScanRunErrorTrace { // Output only. // Defines an error reason code. - // Next id: 7 + // Next id: 8 enum Code { // Default value is never used. CODE_UNSPECIFIED = 0; diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto index 43a5017d..dfc61697 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto +++ b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -51,6 +51,9 @@ message ScanRunWarningTrace { // Indicates that a scan is blocked by IAP. BLOCKED_BY_IAP = 4; + + // Indicates that no seeds is found for a scan + NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN = 5; } // Output only. Indicates the warning code. diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto index 5f1bfcd4..efcc9bf2 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto +++ b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1; import "google/api/annotations.proto"; +import "google/api/client.proto"; import "google/cloud/websecurityscanner/v1/crawled_url.proto"; import "google/cloud/websecurityscanner/v1/finding.proto"; import "google/cloud/websecurityscanner/v1/finding_type_stats.proto"; @@ -24,7 +25,6 @@ import "google/cloud/websecurityscanner/v1/scan_config.proto"; import "google/cloud/websecurityscanner/v1/scan_run.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -import "google/api/client.proto"; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index a2a4c2b8..22a7e397 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.89.4 + 0.90.0 proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.cloud google-cloud-websecurityscanner-parent - 2.2.4 + 2.3.0 diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java index 2d700ee5..5add9b59 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java @@ -56,66 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CrawledUrl( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - httpMethod_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - body_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor; @@ -303,7 +243,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, body_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -321,7 +261,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, body_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -340,7 +280,7 @@ public boolean equals(final java.lang.Object obj) { if (!getHttpMethod().equals(other.getHttpMethod())) return false; if (!getUrl().equals(other.getUrl())) return false; if (!getBody().equals(other.getBody())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -357,7 +297,7 @@ public int hashCode() { hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -489,17 +429,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -603,7 +536,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.CrawledUrl body_ = other.body_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -618,18 +551,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + httpMethod_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + url_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + body_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -988,7 +952,18 @@ public CrawledUrl parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CrawledUrl(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java index 0f68af4a..7dafe053 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java @@ -52,69 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateScanConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; @@ -259,7 +196,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (scanConfig_ != null) { output.writeMessage(2, getScanConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -274,7 +211,7 @@ public int getSerializedSize() { if (scanConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -295,7 +232,7 @@ public boolean equals(final java.lang.Object obj) { if (hasScanConfig()) { if (!getScanConfig().equals(other.getScanConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -312,7 +249,7 @@ public int hashCode() { hash = (37 * hash) + SCAN_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getScanConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -444,17 +381,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -563,7 +493,7 @@ public Builder mergeFrom( if (other.hasScanConfig()) { mergeScanConfig(other.getScanConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -578,19 +508,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -954,7 +908,18 @@ public CreateScanConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateScanConfigRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java index 757144a2..2825ed02 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteScanConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -464,7 +411,7 @@ public Builder mergeFrom( name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -479,19 +426,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -650,7 +615,18 @@ public DeleteScanConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteScanConfigRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java index c980481d..0f5b40a9 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java @@ -62,202 +62,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Finding( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - findingType_ = rawValue; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - httpMethod_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - fuzzedUrl_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - body_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - reproductionUrl_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - frameUrl_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - finalUrl_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - trackingId_ = s; - break; - } - case 90: - { - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder subBuilder = null; - if (outdatedLibrary_ != null) { - subBuilder = outdatedLibrary_.toBuilder(); - } - outdatedLibrary_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outdatedLibrary_); - outdatedLibrary_ = subBuilder.buildPartial(); - } - - break; - } - case 98: - { - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder subBuilder = - null; - if (violatingResource_ != null) { - subBuilder = violatingResource_.toBuilder(); - } - violatingResource_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(violatingResource_); - violatingResource_ = subBuilder.buildPartial(); - } - - break; - } - case 106: - { - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder subBuilder = - null; - if (vulnerableParameters_ != null) { - subBuilder = vulnerableParameters_.toBuilder(); - } - vulnerableParameters_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(vulnerableParameters_); - vulnerableParameters_ = subBuilder.buildPartial(); - } - - break; - } - case 114: - { - com.google.cloud.websecurityscanner.v1alpha.Xss.Builder subBuilder = null; - if (xss_ != null) { - subBuilder = xss_.toBuilder(); - } - xss_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.Xss.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(xss_); - xss_ = subBuilder.buildPartial(); - } - - break; - } - case 122: - { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder subBuilder = - null; - if (vulnerableHeaders_ != null) { - subBuilder = vulnerableHeaders_.toBuilder(); - } - vulnerableHeaders_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(vulnerableHeaders_); - vulnerableHeaders_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.FindingProto .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor; @@ -1492,7 +1296,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (vulnerableHeaders_ != null) { output.writeMessage(15, getVulnerableHeaders()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1549,7 +1353,7 @@ public int getSerializedSize() { if (vulnerableHeaders_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getVulnerableHeaders()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1595,7 +1399,7 @@ public boolean equals(final java.lang.Object obj) { if (hasXss()) { if (!getXss().equals(other.getXss())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1646,7 +1450,7 @@ public int hashCode() { hash = (37 * hash) + XSS_FIELD_NUMBER; hash = (53 * hash) + getXss().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1776,17 +1580,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.Finding.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -2008,7 +1805,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.Finding oth if (other.hasXss()) { mergeXss(other.getXss()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2023,18 +1820,124 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.Finding parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + findingType_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + httpMethod_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + fuzzedUrl_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + body_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + reproductionUrl_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + frameUrl_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + finalUrl_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + trackingId_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + input.readMessage(getOutdatedLibraryFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 90 + case 98: + { + input.readMessage( + getViolatingResourceFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 98 + case 106: + { + input.readMessage( + getVulnerableParametersFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 106 + case 114: + { + input.readMessage(getXssFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 114 + case 122: + { + input.readMessage( + getVulnerableHeadersFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.Finding) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4157,7 +4060,18 @@ public Finding parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java index 3fa56903..9bc04a0b 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java @@ -53,57 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FindingTypeStats( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - findingType_ = rawValue; - break; - } - case 16: - { - findingCount_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor; @@ -197,7 +146,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (findingCount_ != 0) { output.writeInt32(2, findingCount_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -214,7 +163,7 @@ public int getSerializedSize() { if (findingCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, findingCount_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -232,7 +181,7 @@ public boolean equals(final java.lang.Object obj) { if (findingType_ != other.findingType_) return false; if (getFindingCount() != other.getFindingCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,7 +196,7 @@ public int hashCode() { hash = (53 * hash) + findingType_; hash = (37 * hash) + FINDING_COUNT_FIELD_NUMBER; hash = (53 * hash) + getFindingCount(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -378,17 +327,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -485,7 +427,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.FindingType if (other.getFindingCount() != 0) { setFindingCount(other.getFindingCount()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -500,18 +442,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + findingType_ = input.readEnum(); + + break; + } // case 8 + case 16: + { + findingCount_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -694,7 +661,18 @@ public FindingTypeStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FindingTypeStats(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java index cfe8db4f..b7505c90 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetFindingRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; @@ -187,7 +141,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -199,7 +153,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -216,7 +170,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -229,7 +183,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -461,7 +408,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.GetFindingR name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -476,19 +423,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -651,7 +616,18 @@ public GetFindingRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFindingRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java index a84f8936..69adc772 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetScanConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -357,17 +311,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -460,7 +407,7 @@ public Builder mergeFrom( name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -475,19 +422,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -646,7 +611,18 @@ public GetScanConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanConfigRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java index 2073d4e2..7381f1bf 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetScanRunRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; @@ -187,7 +141,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -199,7 +153,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -216,7 +170,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -229,7 +183,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -461,7 +408,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.GetScanRunR name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -476,19 +423,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -651,7 +616,18 @@ public GetScanRunRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanRunRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java index 13be1c66..f2dab988 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; @@ -279,7 +221,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -297,7 +239,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -316,7 +258,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getPageSize() != other.getPageSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -333,7 +275,7 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -465,17 +407,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -583,7 +518,7 @@ public Builder mergeFrom( if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -598,19 +533,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -948,7 +913,18 @@ public ListCrawledUrlsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java index 3b2986b1..22197cfe 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java @@ -53,70 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl>(); - mutable_bitField0_ |= 0x00000001; - } - crawledUrls_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; @@ -274,7 +210,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -289,7 +225,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -307,7 +243,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCrawledUrlsList().equals(other.getCrawledUrlsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,7 +260,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -456,19 +392,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCrawledUrlsFieldBuilder(); - } } @java.lang.Override @@ -476,10 +403,11 @@ public Builder clear() { super.clear(); if (crawledUrlsBuilder_ == null) { crawledUrls_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + crawledUrls_ = null; crawledUrlsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -606,7 +534,7 @@ public Builder mergeFrom( nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -621,19 +549,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.parser(), + extensionRegistry); + if (crawledUrlsBuilder_ == null) { + ensureCrawledUrlsIsMutable(); + crawledUrls_.add(m); + } else { + crawledUrlsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1144,7 +1104,18 @@ public ListCrawledUrlsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java index 8edfe8f9..b856cd66 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; @@ -187,7 +141,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -199,7 +153,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -216,7 +170,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) obj; if (!getParent().equals(other.getParent())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -229,7 +183,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -362,17 +316,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -469,7 +416,7 @@ public Builder mergeFrom( parent_ = other.parent_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -484,19 +431,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -661,7 +626,18 @@ public ListFindingTypeStatsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java index 6d0b1ac7..2519af9b 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java @@ -52,63 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats>(); - mutable_bitField0_ |= 0x00000001; - } - findingTypeStats_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; @@ -225,7 +168,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < findingTypeStats_.size(); i++) { output.writeMessage(1, findingTypeStats_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -237,7 +180,7 @@ public int getSerializedSize() { for (int i = 0; i < findingTypeStats_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findingTypeStats_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -255,7 +198,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) obj; if (!getFindingTypeStatsList().equals(other.getFindingTypeStatsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,7 +213,7 @@ public int hashCode() { hash = (37 * hash) + FINDING_TYPE_STATS_FIELD_NUMBER; hash = (53 * hash) + getFindingTypeStatsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -403,19 +346,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFindingTypeStatsFieldBuilder(); - } } @java.lang.Override @@ -423,10 +357,11 @@ public Builder clear() { super.clear(); if (findingTypeStatsBuilder_ == null) { findingTypeStats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + findingTypeStats_ = null; findingTypeStatsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -548,7 +483,7 @@ public Builder mergeFrom( } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -563,19 +498,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.parser(), + extensionRegistry); + if (findingTypeStatsBuilder_ == null) { + ensureFindingTypeStatsIsMutable(); + findingTypeStats_.add(m); + } else { + findingTypeStatsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1023,7 +984,18 @@ public ListFindingTypeStatsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java index 97037754..ea53b3bf 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java @@ -54,71 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListFindingsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; @@ -345,7 +280,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(4, pageSize_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -366,7 +301,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -386,7 +321,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFilter().equals(other.getFilter())) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getPageSize() != other.getPageSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -405,7 +340,7 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -535,17 +470,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -658,7 +586,7 @@ public Builder mergeFrom( if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -673,19 +601,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1144,7 +1108,18 @@ public ListFindingsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java index db67ac92..54959e63 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java @@ -53,69 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListFindingsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - findings_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.Finding.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = java.util.Collections.unmodifiableList(findings_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; @@ -272,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -287,7 +224,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -305,7 +242,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFindingsList().equals(other.getFindingsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -322,7 +259,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -452,19 +389,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFindingsFieldBuilder(); - } } @java.lang.Override @@ -472,10 +400,11 @@ public Builder clear() { super.clear(); if (findingsBuilder_ == null) { findings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + findings_ = null; findingsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -600,7 +529,7 @@ public Builder mergeFrom( nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -615,19 +544,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1alpha.Finding m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.Finding.parser(), + extensionRegistry); + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(m); + } else { + findingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1135,7 +1096,18 @@ public ListFindingsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java index c3cc336c..cfb2a9bf 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListScanConfigsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; @@ -277,7 +219,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -295,7 +237,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -314,7 +256,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getPageSize() != other.getPageSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -331,7 +273,7 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -463,17 +405,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -581,7 +516,7 @@ public Builder mergeFrom( if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -596,19 +531,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -941,7 +906,18 @@ public ListScanConfigsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java index c891010e..86596cce 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java @@ -53,70 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListScanConfigsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig>(); - mutable_bitField0_ |= 0x00000001; - } - scanConfigs_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; @@ -274,7 +210,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -289,7 +225,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -307,7 +243,7 @@ public boolean equals(final java.lang.Object obj) { if (!getScanConfigsList().equals(other.getScanConfigsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,7 +260,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -456,19 +392,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getScanConfigsFieldBuilder(); - } } @java.lang.Override @@ -476,10 +403,11 @@ public Builder clear() { super.clear(); if (scanConfigsBuilder_ == null) { scanConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + scanConfigs_ = null; scanConfigsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -606,7 +534,7 @@ public Builder mergeFrom( nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -621,19 +549,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), + extensionRegistry); + if (scanConfigsBuilder_ == null) { + ensureScanConfigsIsMutable(); + scanConfigs_.add(m); + } else { + scanConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1144,7 +1104,18 @@ public ListScanConfigsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java index e595bbab..053aa8bd 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListScanRunsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; @@ -277,7 +219,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -295,7 +237,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -314,7 +256,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getPageSize() != other.getPageSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -331,7 +273,7 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -461,17 +403,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -577,7 +512,7 @@ public Builder mergeFrom( if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -592,19 +527,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -937,7 +902,18 @@ public ListScanRunsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java index 892663f5..fa26314c 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java @@ -53,69 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListScanRunsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanRuns_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - scanRuns_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; @@ -272,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -287,7 +224,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -305,7 +242,7 @@ public boolean equals(final java.lang.Object obj) { if (!getScanRunsList().equals(other.getScanRunsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -322,7 +259,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -452,19 +389,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getScanRunsFieldBuilder(); - } } @java.lang.Override @@ -472,10 +400,11 @@ public Builder clear() { super.clear(); if (scanRunsBuilder_ == null) { scanRuns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + scanRuns_ = null; scanRunsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -600,7 +529,7 @@ public Builder mergeFrom( nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -615,19 +544,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1alpha.ScanRun m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), + extensionRegistry); + if (scanRunsBuilder_ == null) { + ensureScanRunsIsMutable(); + scanRuns_.add(m); + } else { + scanRunsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1135,7 +1096,18 @@ public ListScanRunsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java index eb2983e5..6f7d949f 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java @@ -54,73 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private OutdatedLibrary( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - libraryName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - learnMoreUrls_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - learnMoreUrls_ = learnMoreUrls_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; @@ -318,7 +251,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < learnMoreUrls_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, learnMoreUrls_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -341,7 +274,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getLearnMoreUrlsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -360,7 +293,7 @@ public boolean equals(final java.lang.Object obj) { if (!getLibraryName().equals(other.getLibraryName())) return false; if (!getVersion().equals(other.getVersion())) return false; if (!getLearnMoreUrlsList().equals(other.getLearnMoreUrlsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -379,7 +312,7 @@ public int hashCode() { hash = (37 * hash) + LEARN_MORE_URLS_FIELD_NUMBER; hash = (53 * hash) + getLearnMoreUrlsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -509,17 +442,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -634,7 +560,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.OutdatedLib } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -649,18 +575,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + libraryName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLearnMoreUrlsIsMutable(); + learnMoreUrls_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1078,7 +1036,18 @@ public OutdatedLibrary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OutdatedLibrary(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java index 3f1d5d32..5b509874 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java @@ -58,180 +58,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ScanConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 24: - { - maxQps_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - startingUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - startingUrls_.add(s); - break; - } - case 42: - { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder - subBuilder = null; - if (authentication_ != null) { - subBuilder = authentication_.toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authentication_); - authentication_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - int rawValue = input.readEnum(); - - userAgent_ = rawValue; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - blacklistPatterns_.add(s); - break; - } - case 66: - { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder subBuilder = - null; - if (schedule_ != null) { - subBuilder = schedule_.toBuilder(); - } - schedule_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schedule_); - schedule_ = subBuilder.buildPartial(); - } - - break; - } - case 72: - { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - targetPlatforms_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - targetPlatforms_.add(rawValue); - break; - } - case 74: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - targetPlatforms_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - targetPlatforms_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 90: - { - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder subBuilder = null; - if (latestRun_ != null) { - subBuilder = latestRun_.toBuilder(); - } - latestRun_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latestRun_); - latestRun_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - startingUrls_ = startingUrls_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - blacklistPatterns_ = blacklistPatterns_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - targetPlatforms_ = java.util.Collections.unmodifiableList(targetPlatforms_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor; @@ -715,99 +541,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Authentication( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 1) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 1; - break; - } - case 18: - { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 2) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 2; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; @@ -920,60 +653,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GoogleAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; @@ -1115,7 +794,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1130,7 +809,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1151,7 +830,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUsername().equals(other.getUsername())) return false; if (!getPassword().equals(other.getPassword())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1166,7 +845,7 @@ public int hashCode() { hash = (53 * hash) + getUsername().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1324,17 +1003,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1448,7 +1120,7 @@ public Builder mergeFrom( password_ = other.password_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1463,21 +1135,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + username_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1747,7 +1441,19 @@ public GoogleAccount parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GoogleAccount(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1890,67 +1596,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CustomAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - loginUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; @@ -2144,7 +1789,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loginUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, loginUrl_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2162,7 +1807,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loginUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, loginUrl_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2184,7 +1829,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUsername().equals(other.getUsername())) return false; if (!getPassword().equals(other.getPassword())) return false; if (!getLoginUrl().equals(other.getLoginUrl())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2201,7 +1846,7 @@ public int hashCode() { hash = (53 * hash) + getPassword().hashCode(); hash = (37 * hash) + LOGIN_URL_FIELD_NUMBER; hash = (53 * hash) + getLoginUrl().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2359,17 +2004,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -2490,7 +2128,7 @@ public Builder mergeFrom( loginUrl_ = other.loginUrl_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2505,21 +2143,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + username_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + loginUrl_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2895,7 +2561,19 @@ public CustomAccount parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomAccount(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -3116,7 +2794,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3141,7 +2819,7 @@ public int getSerializedSize() { .CustomAccount) authentication_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3168,7 +2846,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3191,7 +2869,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -3326,22 +3004,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); + if (googleAccountBuilder_ != null) { + googleAccountBuilder_.clear(); + } + if (customAccountBuilder_ != null) { + customAccountBuilder_.clear(); + } authenticationCase_ = 0; authentication_ = null; return this; @@ -3461,7 +3138,7 @@ public Builder mergeFrom( break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3476,19 +3153,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGoogleAccountFieldBuilder().getBuilder(), extensionRegistry); + authenticationCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomAccountFieldBuilder().getBuilder(), extensionRegistry); + authenticationCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4066,7 +3767,19 @@ public Authentication parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Authentication(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -4180,65 +3893,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Schedule( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; - } - case 16: - { - intervalDurationDays_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; @@ -4349,7 +4003,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (intervalDurationDays_ != 0) { output.writeInt32(2, intervalDurationDays_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -4364,7 +4018,7 @@ public int getSerializedSize() { if (intervalDurationDays_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, intervalDurationDays_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -4385,7 +4039,7 @@ public boolean equals(final java.lang.Object obj) { if (!getScheduleTime().equals(other.getScheduleTime())) return false; } if (getIntervalDurationDays() != other.getIntervalDurationDays()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4402,7 +4056,7 @@ public int hashCode() { } hash = (37 * hash) + INTERVAL_DURATION_DAYS_FIELD_NUMBER; hash = (53 * hash) + getIntervalDurationDays(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -4536,17 +4190,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -4654,7 +4301,7 @@ public Builder mergeFrom( if (other.getIntervalDurationDays() != 0) { setIntervalDurationDays(other.getIntervalDurationDays()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -4669,19 +4316,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 16: + { + intervalDurationDays_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4984,7 +4655,19 @@ public Schedule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -5613,7 +5296,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (latestRun_ != null) { output.writeMessage(11, getLatestRun()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -5674,7 +5357,7 @@ public int getSerializedSize() { if (latestRun_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLatestRun()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -5709,7 +5392,7 @@ public boolean equals(final java.lang.Object obj) { if (hasLatestRun()) { if (!getLatestRun().equals(other.getLatestRun())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5752,7 +5435,7 @@ public int hashCode() { hash = (37 * hash) + LATEST_RUN_FIELD_NUMBER; hash = (53 * hash) + getLatestRun().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -5883,17 +5566,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -6096,7 +5772,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig if (other.hasLatestRun()) { mergeLatestRun(other.getLatestRun()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -6111,18 +5787,106 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + maxQps_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStartingUrlsIsMutable(); + startingUrls_.add(s); + break; + } // case 34 + case 42: + { + input.readMessage(getAuthenticationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + userAgent_ = input.readEnum(); + + break; + } // case 48 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureBlacklistPatternsIsMutable(); + blacklistPatterns_.add(s); + break; + } // case 58 + case 66: + { + input.readMessage(getScheduleFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 72: + { + int tmpRaw = input.readEnum(); + ensureTargetPlatformsIsMutable(); + targetPlatforms_.add(tmpRaw); + break; + } // case 72 + case 74: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureTargetPlatformsIsMutable(); + targetPlatforms_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 74 + case 90: + { + input.readMessage(getLatestRunFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -7734,7 +7498,18 @@ public ScanConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java index 55bf5a93..a543cd8c 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java @@ -54,116 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ScanRun( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - executionState_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - resultState_ = rawValue; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - urlsCrawledCount_ = input.readInt64(); - break; - } - case 56: - { - urlsTestedCount_ = input.readInt64(); - break; - } - case 64: - { - hasVulnerabilities_ = input.readBool(); - break; - } - case 72: - { - progressPercent_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; @@ -898,7 +788,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (progressPercent_ != 0) { output.writeInt32(9, progressPercent_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -939,7 +829,7 @@ public int getSerializedSize() { if (progressPercent_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, progressPercent_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -970,7 +860,7 @@ public boolean equals(final java.lang.Object obj) { if (getUrlsTestedCount() != other.getUrlsTestedCount()) return false; if (getHasVulnerabilities() != other.getHasVulnerabilities()) return false; if (getProgressPercent() != other.getProgressPercent()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1003,7 +893,7 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasVulnerabilities()); hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getProgressPercent(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1132,17 +1022,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanRun.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1296,7 +1179,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanRun oth if (other.getProgressPercent() != 0) { setProgressPercent(other.getProgressPercent()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1311,18 +1194,85 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ScanRun parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + executionState_ = input.readEnum(); + + break; + } // case 16 + case 24: + { + resultState_ = input.readEnum(); + + break; + } // case 24 + case 34: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + urlsCrawledCount_ = input.readInt64(); + + break; + } // case 48 + case 56: + { + urlsTestedCount_ = input.readInt64(); + + break; + } // case 56 + case 64: + { + hasVulnerabilities_ = input.readBool(); + + break; + } // case 64 + case 72: + { + progressPercent_ = input.readInt32(); + + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanRun) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2269,7 +2219,18 @@ public ScanRun parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRun(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java index f17df141..eecf1667 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StartScanRunRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -357,17 +311,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -460,7 +407,7 @@ public Builder mergeFrom( name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -475,19 +422,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -646,7 +611,18 @@ public StartScanRunRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StartScanRunRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java index cb679cb0..d047de67 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StopScanRunRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; @@ -187,7 +141,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -199,7 +153,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -216,7 +170,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -229,7 +183,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -461,7 +408,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.StopScanRun name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -476,19 +423,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -652,7 +617,18 @@ public StopScanRunRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StopScanRunRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java index 72451e53..f7b6a255 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java @@ -50,77 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateScanConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; @@ -271,7 +200,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(3, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -286,7 +215,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -310,7 +239,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateMask()) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -329,7 +258,7 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -461,17 +390,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -587,7 +509,7 @@ public Builder mergeFrom( if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -602,19 +524,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1085,7 +1031,18 @@ public UpdateScanConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateScanConfigRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java index c87d214c..0bbfddb1 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java @@ -54,59 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ViolatingResource( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - contentType_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - resourceUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor; @@ -240,7 +187,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceUrl_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -255,7 +202,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceUrl_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -273,7 +220,7 @@ public boolean equals(final java.lang.Object obj) { if (!getContentType().equals(other.getContentType())) return false; if (!getResourceUrl().equals(other.getResourceUrl())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -288,7 +235,7 @@ public int hashCode() { hash = (53 * hash) + getContentType().hashCode(); hash = (37 * hash) + RESOURCE_URL_FIELD_NUMBER; hash = (53 * hash) + getResourceUrl().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -419,17 +366,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -528,7 +468,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ViolatingRe resourceUrl_ = other.resourceUrl_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -543,19 +483,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + contentType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + resourceUrl_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -804,7 +768,18 @@ public ViolatingResource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ViolatingResource(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java index 8544d3d4..5e2b4576 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java @@ -53,80 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private VulnerableHeaders( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000001; - } - headers_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000002; - } - missingHeaders_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = java.util.Collections.unmodifiableList(headers_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = java.util.Collections.unmodifiableList(missingHeaders_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; @@ -232,59 +158,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Header( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; @@ -418,7 +291,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -433,7 +306,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -451,7 +324,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getValue().equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -466,7 +339,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -600,17 +473,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -715,7 +581,7 @@ public Builder mergeFrom( value_ = other.value_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -730,19 +596,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + value_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -993,7 +883,19 @@ public Header parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1196,7 +1098,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < missingHeaders_.size(); i++) { output.writeMessage(2, missingHeaders_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1211,7 +1113,7 @@ public int getSerializedSize() { for (int i = 0; i < missingHeaders_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, missingHeaders_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1229,7 +1131,7 @@ public boolean equals(final java.lang.Object obj) { if (!getHeadersList().equals(other.getHeadersList())) return false; if (!getMissingHeadersList().equals(other.getMissingHeadersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1248,7 +1150,7 @@ public int hashCode() { hash = (37 * hash) + MISSING_HEADERS_FIELD_NUMBER; hash = (53 * hash) + getMissingHeadersList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1378,20 +1280,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getHeadersFieldBuilder(); - getMissingHeadersFieldBuilder(); - } } @java.lang.Override @@ -1399,16 +1291,18 @@ public Builder clear() { super.clear(); if (headersBuilder_ == null) { headers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + headers_ = null; headersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (missingHeadersBuilder_ == null) { missingHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + missingHeaders_ = null; missingHeadersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1561,7 +1455,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableH } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1576,19 +1470,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + .parser(), + extensionRegistry); + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.add(m); + } else { + headersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + .parser(), + extensionRegistry); + if (missingHeadersBuilder_ == null) { + ensureMissingHeadersIsMutable(); + missingHeaders_.add(m); + } else { + missingHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2435,7 +2371,18 @@ public VulnerableHeaders parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableHeaders(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java index 1cbcd0ba..8d77e58f 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java @@ -52,59 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private VulnerableParameters( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameterNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - parameterNames_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - parameterNames_ = parameterNames_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; @@ -198,7 +145,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < parameterNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameterNames_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -215,7 +162,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getParameterNamesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -232,7 +179,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) obj; if (!getParameterNamesList().equals(other.getParameterNamesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,7 +194,7 @@ public int hashCode() { hash = (37 * hash) + PARAMETER_NAMES_FIELD_NUMBER; hash = (53 * hash) + getParameterNamesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -377,17 +324,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -491,7 +431,7 @@ public Builder mergeFrom( } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -506,19 +446,38 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureParameterNamesIsMutable(); + parameterNames_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -726,7 +685,18 @@ public VulnerableParameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableParameters(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java index f8a3b4fc..e9d5a632 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Xss( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stackTraces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - stackTraces_.add(s); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - errorMessage_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - stackTraces_ = stackTraces_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; @@ -258,7 +198,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -278,7 +218,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -296,7 +236,7 @@ public boolean equals(final java.lang.Object obj) { if (!getStackTracesList().equals(other.getStackTracesList())) return false; if (!getErrorMessage().equals(other.getErrorMessage())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,7 +253,7 @@ public int hashCode() { } hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getErrorMessage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -442,17 +382,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1alpha.Xss.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -560,7 +493,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.Xss other) errorMessage_ = other.errorMessage_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -575,17 +508,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.Xss parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStackTracesIsMutable(); + stackTraces_.add(s); + break; + } // case 10 + case 18: + { + errorMessage_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.Xss) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -897,7 +857,18 @@ public Xss parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Xss(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/pom.xml b/proto-google-cloud-websecurityscanner-v1beta/pom.xml index b2054a2c..04b60f95 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/proto-google-cloud-websecurityscanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.89.4 + 0.90.0 proto-google-cloud-websecurityscanner-v1beta PROTO library for proto-google-cloud-websecurityscanner-v1beta com.google.cloud google-cloud-websecurityscanner-parent - 2.2.4 + 2.3.0 diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java index a8334886..12eb1023 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java @@ -56,66 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CrawledUrl( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - httpMethod_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - body_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor; @@ -303,7 +243,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, body_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -321,7 +261,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, body_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -340,7 +280,7 @@ public boolean equals(final java.lang.Object obj) { if (!getHttpMethod().equals(other.getHttpMethod())) return false; if (!getUrl().equals(other.getUrl())) return false; if (!getBody().equals(other.getBody())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -357,7 +297,7 @@ public int hashCode() { hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -489,17 +429,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.CrawledUrl.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -603,7 +536,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.CrawledUrl o body_ = other.body_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -618,18 +551,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.CrawledUrl parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + httpMethod_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + url_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + body_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.CrawledUrl) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -988,7 +952,18 @@ public CrawledUrl parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CrawledUrl(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java index 1db99ab1..c43ab050 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java @@ -52,69 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateScanConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; @@ -259,7 +196,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (scanConfig_ != null) { output.writeMessage(2, getScanConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -274,7 +211,7 @@ public int getSerializedSize() { if (scanConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -295,7 +232,7 @@ public boolean equals(final java.lang.Object obj) { if (hasScanConfig()) { if (!getScanConfig().equals(other.getScanConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -312,7 +249,7 @@ public int hashCode() { hash = (37 * hash) + SCAN_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getScanConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -444,17 +381,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -563,7 +493,7 @@ public Builder mergeFrom( if (other.hasScanConfig()) { mergeScanConfig(other.getScanConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -578,19 +508,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -953,7 +907,18 @@ public CreateScanConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateScanConfigRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java index b30f12e6..c8a830be 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteScanConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -464,7 +411,7 @@ public Builder mergeFrom( name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -479,19 +426,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -650,7 +615,18 @@ public DeleteScanConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteScanConfigRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java index 15ae7730..ceb3f72d 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java @@ -62,218 +62,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Finding( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - findingType_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - httpMethod_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - fuzzedUrl_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - body_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - reproductionUrl_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - frameUrl_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - finalUrl_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - trackingId_ = s; - break; - } - case 90: - { - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder subBuilder = null; - if (outdatedLibrary_ != null) { - subBuilder = outdatedLibrary_.toBuilder(); - } - outdatedLibrary_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outdatedLibrary_); - outdatedLibrary_ = subBuilder.buildPartial(); - } - - break; - } - case 98: - { - com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder subBuilder = - null; - if (violatingResource_ != null) { - subBuilder = violatingResource_.toBuilder(); - } - violatingResource_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ViolatingResource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(violatingResource_); - violatingResource_ = subBuilder.buildPartial(); - } - - break; - } - case 106: - { - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder subBuilder = - null; - if (vulnerableParameters_ != null) { - subBuilder = vulnerableParameters_.toBuilder(); - } - vulnerableParameters_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(vulnerableParameters_); - vulnerableParameters_ = subBuilder.buildPartial(); - } - - break; - } - case 114: - { - com.google.cloud.websecurityscanner.v1beta.Xss.Builder subBuilder = null; - if (xss_ != null) { - subBuilder = xss_.toBuilder(); - } - xss_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.Xss.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(xss_); - xss_ = subBuilder.buildPartial(); - } - - break; - } - case 122: - { - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder subBuilder = - null; - if (vulnerableHeaders_ != null) { - subBuilder = vulnerableHeaders_.toBuilder(); - } - vulnerableHeaders_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(vulnerableHeaders_); - vulnerableHeaders_ = subBuilder.buildPartial(); - } - - break; - } - case 130: - { - com.google.cloud.websecurityscanner.v1beta.Form.Builder subBuilder = null; - if (form_ != null) { - subBuilder = form_.toBuilder(); - } - form_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.Form.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(form_); - form_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.FindingProto .internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor; @@ -1163,7 +951,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (form_ != null) { output.writeMessage(16, getForm()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1221,7 +1009,7 @@ public int getSerializedSize() { if (form_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getForm()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1271,7 +1059,7 @@ public boolean equals(final java.lang.Object obj) { if (hasXss()) { if (!getXss().equals(other.getXss())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1326,7 +1114,7 @@ public int hashCode() { hash = (37 * hash) + XSS_FIELD_NUMBER; hash = (53 * hash) + getXss().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1456,17 +1244,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.Finding.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1703,7 +1484,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.Finding othe if (other.hasXss()) { mergeXss(other.getXss()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1718,18 +1499,130 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.Finding parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + findingType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + httpMethod_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + fuzzedUrl_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + body_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + reproductionUrl_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + frameUrl_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + finalUrl_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + trackingId_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + input.readMessage(getOutdatedLibraryFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 90 + case 98: + { + input.readMessage( + getViolatingResourceFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 98 + case 106: + { + input.readMessage( + getVulnerableParametersFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 106 + case 114: + { + input.readMessage(getXssFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 114 + case 122: + { + input.readMessage( + getVulnerableHeadersFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 + case 130: + { + input.readMessage(getFormFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.Finding) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4069,7 +3962,18 @@ public Finding parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java index 40ea677b..aae1c42b 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java @@ -53,57 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FindingTypeStats( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - findingType_ = s; - break; - } - case 16: - { - findingCount_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor; @@ -206,7 +155,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (findingCount_ != 0) { output.writeInt32(2, findingCount_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -221,7 +170,7 @@ public int getSerializedSize() { if (findingCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, findingCount_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -239,7 +188,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFindingType().equals(other.getFindingType())) return false; if (getFindingCount() != other.getFindingCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,7 +203,7 @@ public int hashCode() { hash = (53 * hash) + getFindingType().hashCode(); hash = (37 * hash) + FINDING_COUNT_FIELD_NUMBER; hash = (53 * hash) + getFindingCount(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -385,17 +334,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -491,7 +433,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.FindingTypeS if (other.getFindingCount() != 0) { setFindingCount(other.getFindingCount()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -506,18 +448,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + findingType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + findingCount_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -711,7 +678,18 @@ public FindingTypeStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FindingTypeStats(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java index 5b578613..bf8c24c1 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Form( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - actionUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fields_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = fields_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; @@ -258,7 +198,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < fields_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fields_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -278,7 +218,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getFieldsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -296,7 +236,7 @@ public boolean equals(final java.lang.Object obj) { if (!getActionUri().equals(other.getActionUri())) return false; if (!getFieldsList().equals(other.getFieldsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,7 +253,7 @@ public int hashCode() { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + getFieldsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -442,17 +382,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.Form.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -560,7 +493,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.Form other) } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -575,17 +508,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.Form parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + actionUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFieldsIsMutable(); + fields_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.Form) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -897,7 +857,18 @@ public Form parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Form(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java index 9c58abb6..805011fc 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetFindingRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; @@ -187,7 +141,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -199,7 +153,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -216,7 +170,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -229,7 +183,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -461,7 +408,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.GetFindingRe name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -476,18 +423,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -650,7 +616,18 @@ public GetFindingRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFindingRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java index 2801eb0b..aa427004 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetScanConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -357,17 +311,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -460,7 +407,7 @@ public Builder mergeFrom( name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -475,19 +422,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -646,7 +611,18 @@ public GetScanConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanConfigRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java index b85b8769..a7db40e1 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetScanRunRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; @@ -187,7 +141,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -199,7 +153,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -216,7 +170,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -229,7 +183,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -461,7 +408,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.GetScanRunRe name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -476,18 +423,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -650,7 +616,18 @@ public GetScanRunRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanRunRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java index 916c047d..c390f432 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; @@ -279,7 +221,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -297,7 +239,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -316,7 +258,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getPageSize() != other.getPageSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -333,7 +275,7 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -465,17 +407,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -581,7 +516,7 @@ public Builder mergeFrom( if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -596,19 +531,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -946,7 +911,18 @@ public ListCrawledUrlsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java index 6f82cec4..1db04e1e 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java @@ -53,70 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.CrawledUrl>(); - mutable_bitField0_ |= 0x00000001; - } - crawledUrls_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.CrawledUrl.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; @@ -274,7 +210,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -289,7 +225,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -307,7 +243,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCrawledUrlsList().equals(other.getCrawledUrlsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,7 +260,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -456,19 +392,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCrawledUrlsFieldBuilder(); - } } @java.lang.Override @@ -476,10 +403,11 @@ public Builder clear() { super.clear(); if (crawledUrlsBuilder_ == null) { crawledUrls_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + crawledUrls_ = null; crawledUrlsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -606,7 +534,7 @@ public Builder mergeFrom( nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -621,19 +549,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1beta.CrawledUrl m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.CrawledUrl.parser(), + extensionRegistry); + if (crawledUrlsBuilder_ == null) { + ensureCrawledUrlsIsMutable(); + crawledUrls_.add(m); + } else { + crawledUrlsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1144,7 +1104,18 @@ public ListCrawledUrlsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java index bdac7a6d..1ce34563 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; @@ -187,7 +141,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -199,7 +153,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -216,7 +170,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) obj; if (!getParent().equals(other.getParent())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -229,7 +183,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -361,17 +315,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -467,7 +414,7 @@ public Builder mergeFrom( parent_ = other.parent_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -482,19 +429,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -658,7 +623,18 @@ public ListFindingTypeStatsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java index 230bd82f..8664758d 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java @@ -52,63 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats>(); - mutable_bitField0_ |= 0x00000001; - } - findingTypeStats_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; @@ -220,7 +163,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < findingTypeStats_.size(); i++) { output.writeMessage(1, findingTypeStats_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -232,7 +175,7 @@ public int getSerializedSize() { for (int i = 0; i < findingTypeStats_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findingTypeStats_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -249,7 +192,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) obj; if (!getFindingTypeStatsList().equals(other.getFindingTypeStatsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,7 +207,7 @@ public int hashCode() { hash = (37 * hash) + FINDING_TYPE_STATS_FIELD_NUMBER; hash = (53 * hash) + getFindingTypeStatsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -397,19 +340,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFindingTypeStatsFieldBuilder(); - } } @java.lang.Override @@ -417,10 +351,11 @@ public Builder clear() { super.clear(); if (findingTypeStatsBuilder_ == null) { findingTypeStats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + findingTypeStats_ = null; findingTypeStatsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -542,7 +477,7 @@ public Builder mergeFrom( } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -557,19 +492,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.parser(), + extensionRegistry); + if (findingTypeStatsBuilder_ == null) { + ensureFindingTypeStatsIsMutable(); + findingTypeStats_.add(m); + } else { + findingTypeStatsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1017,7 +978,18 @@ public ListFindingTypeStatsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java index 87539f9b..6ae56759 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java @@ -54,71 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListFindingsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; @@ -345,7 +280,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(4, pageSize_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -366,7 +301,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -386,7 +321,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFilter().equals(other.getFilter())) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getPageSize() != other.getPageSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -405,7 +340,7 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -535,17 +470,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -657,7 +585,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListFindings if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -672,19 +600,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1143,7 +1107,18 @@ public ListFindingsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java index f0e98b1d..b0172184 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java @@ -53,69 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListFindingsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - findings_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.Finding.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = java.util.Collections.unmodifiableList(findings_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; @@ -272,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -287,7 +224,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -305,7 +242,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFindingsList().equals(other.getFindingsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -322,7 +259,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -452,19 +389,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFindingsFieldBuilder(); - } } @java.lang.Override @@ -472,10 +400,11 @@ public Builder clear() { super.clear(); if (findingsBuilder_ == null) { findings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + findings_ = null; findingsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -600,7 +529,7 @@ public Builder mergeFrom( nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -615,19 +544,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1beta.Finding m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.Finding.parser(), + extensionRegistry); + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(m); + } else { + findingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1135,7 +1096,18 @@ public ListFindingsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java index f80cdd78..e4ba2b8b 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListScanConfigsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; @@ -277,7 +219,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -295,7 +237,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -314,7 +256,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getPageSize() != other.getPageSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -331,7 +273,7 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -463,17 +405,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -579,7 +514,7 @@ public Builder mergeFrom( if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -594,19 +529,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -939,7 +904,18 @@ public ListScanConfigsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java index 1d5891fd..f11eea42 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java @@ -53,70 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListScanConfigsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.ScanConfig>(); - mutable_bitField0_ |= 0x00000001; - } - scanConfigs_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; @@ -274,7 +210,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -289,7 +225,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -307,7 +243,7 @@ public boolean equals(final java.lang.Object obj) { if (!getScanConfigsList().equals(other.getScanConfigsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,7 +260,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -456,19 +392,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getScanConfigsFieldBuilder(); - } } @java.lang.Override @@ -476,10 +403,11 @@ public Builder clear() { super.clear(); if (scanConfigsBuilder_ == null) { scanConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + scanConfigs_ = null; scanConfigsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -606,7 +534,7 @@ public Builder mergeFrom( nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -621,19 +549,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1beta.ScanConfig m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), + extensionRegistry); + if (scanConfigsBuilder_ == null) { + ensureScanConfigsIsMutable(); + scanConfigs_.add(m); + } else { + scanConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1144,7 +1104,18 @@ public ListScanConfigsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java index aff0e1c0..08dc1e68 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListScanRunsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; @@ -277,7 +219,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -295,7 +237,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -314,7 +256,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getPageSize() != other.getPageSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -331,7 +273,7 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -461,17 +403,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -576,7 +511,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListScanRuns if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -591,19 +526,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -936,7 +901,18 @@ public ListScanRunsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java index 6562b694..e4d2f381 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java @@ -53,69 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListScanRunsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanRuns_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - scanRuns_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; @@ -272,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -287,7 +224,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -305,7 +242,7 @@ public boolean equals(final java.lang.Object obj) { if (!getScanRunsList().equals(other.getScanRunsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -322,7 +259,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -452,19 +389,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getScanRunsFieldBuilder(); - } } @java.lang.Override @@ -472,10 +400,11 @@ public Builder clear() { super.clear(); if (scanRunsBuilder_ == null) { scanRuns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + scanRuns_ = null; scanRunsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -600,7 +529,7 @@ public Builder mergeFrom( nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -615,19 +544,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1beta.ScanRun m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), + extensionRegistry); + if (scanRunsBuilder_ == null) { + ensureScanRunsIsMutable(); + scanRuns_.add(m); + } else { + scanRunsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1135,7 +1096,18 @@ public ListScanRunsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java index acf0bcd4..9a8d992a 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java @@ -54,73 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private OutdatedLibrary( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - libraryName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - learnMoreUrls_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - learnMoreUrls_ = learnMoreUrls_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; @@ -318,7 +251,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < learnMoreUrls_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, learnMoreUrls_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -341,7 +274,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getLearnMoreUrlsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -360,7 +293,7 @@ public boolean equals(final java.lang.Object obj) { if (!getLibraryName().equals(other.getLibraryName())) return false; if (!getVersion().equals(other.getVersion())) return false; if (!getLearnMoreUrlsList().equals(other.getLearnMoreUrlsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -379,7 +312,7 @@ public int hashCode() { hash = (37 * hash) + LEARN_MORE_URLS_FIELD_NUMBER; hash = (53 * hash) + getLearnMoreUrlsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -509,17 +442,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -634,7 +560,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.OutdatedLibr } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -649,18 +575,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + libraryName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLearnMoreUrlsIsMutable(); + learnMoreUrls_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1078,7 +1036,18 @@ public OutdatedLibrary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OutdatedLibrary(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java index 534992ec..b64c3f5d 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java @@ -59,193 +59,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ScanConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 24: - { - maxQps_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - startingUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - startingUrls_.add(s); - break; - } - case 42: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder - subBuilder = null; - if (authentication_ != null) { - subBuilder = authentication_.toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authentication_); - authentication_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - int rawValue = input.readEnum(); - - userAgent_ = rawValue; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - blacklistPatterns_.add(s); - break; - } - case 66: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder subBuilder = - null; - if (schedule_ != null) { - subBuilder = schedule_.toBuilder(); - } - schedule_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schedule_); - schedule_ = subBuilder.buildPartial(); - } - - break; - } - case 72: - { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - targetPlatforms_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - targetPlatforms_.add(rawValue); - break; - } - case 74: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - targetPlatforms_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - targetPlatforms_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 80: - { - int rawValue = input.readEnum(); - - exportToSecurityCommandCenter_ = rawValue; - break; - } - case 90: - { - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder subBuilder = null; - if (latestRun_ != null) { - subBuilder = latestRun_.toBuilder(); - } - latestRun_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latestRun_); - latestRun_ = subBuilder.buildPartial(); - } - - break; - } - case 96: - { - int rawValue = input.readEnum(); - - riskLevel_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - startingUrls_ = startingUrls_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - blacklistPatterns_ = blacklistPatterns_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - targetPlatforms_ = java.util.Collections.unmodifiableList(targetPlatforms_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; @@ -1054,99 +867,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Authentication( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 1) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 1; - break; - } - case 18: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 2) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 2; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; @@ -1259,60 +979,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GoogleAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; @@ -1454,7 +1120,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1469,7 +1135,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1490,7 +1156,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUsername().equals(other.getUsername())) return false; if (!getPassword().equals(other.getPassword())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1505,7 +1171,7 @@ public int hashCode() { hash = (53 * hash) + getUsername().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1663,17 +1329,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1786,7 +1445,7 @@ public Builder mergeFrom( password_ = other.password_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1801,20 +1460,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + username_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2084,7 +1766,19 @@ public GoogleAccount parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GoogleAccount(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -2227,67 +1921,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CustomAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - loginUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; @@ -2481,7 +2114,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loginUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, loginUrl_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2499,7 +2132,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loginUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, loginUrl_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2521,7 +2154,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUsername().equals(other.getUsername())) return false; if (!getPassword().equals(other.getPassword())) return false; if (!getLoginUrl().equals(other.getLoginUrl())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2538,7 +2171,7 @@ public int hashCode() { hash = (53 * hash) + getPassword().hashCode(); hash = (37 * hash) + LOGIN_URL_FIELD_NUMBER; hash = (53 * hash) + getLoginUrl().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2696,17 +2329,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -2826,7 +2452,7 @@ public Builder mergeFrom( loginUrl_ = other.loginUrl_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2841,20 +2467,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + username_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + loginUrl_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3230,7 +2885,19 @@ public CustomAccount parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomAccount(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -3451,7 +3118,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3474,7 +3141,7 @@ public int getSerializedSize() { (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3501,7 +3168,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3524,7 +3191,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -3658,22 +3325,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); + if (googleAccountBuilder_ != null) { + googleAccountBuilder_.clear(); + } + if (customAccountBuilder_ != null) { + customAccountBuilder_.clear(); + } authenticationCase_ = 0; authentication_ = null; return this; @@ -3792,7 +3458,7 @@ public Builder mergeFrom( break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3807,19 +3473,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGoogleAccountFieldBuilder().getBuilder(), extensionRegistry); + authenticationCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomAccountFieldBuilder().getBuilder(), extensionRegistry); + authenticationCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4394,7 +4084,19 @@ public Authentication parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Authentication(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -4508,65 +4210,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Schedule( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; - } - case 16: - { - intervalDurationDays_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; @@ -4677,7 +4320,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (intervalDurationDays_ != 0) { output.writeInt32(2, intervalDurationDays_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -4692,7 +4335,7 @@ public int getSerializedSize() { if (intervalDurationDays_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, intervalDurationDays_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -4713,7 +4356,7 @@ public boolean equals(final java.lang.Object obj) { if (!getScheduleTime().equals(other.getScheduleTime())) return false; } if (getIntervalDurationDays() != other.getIntervalDurationDays()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4730,7 +4373,7 @@ public int hashCode() { } hash = (37 * hash) + INTERVAL_DURATION_DAYS_FIELD_NUMBER; hash = (53 * hash) + getIntervalDurationDays(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -4862,17 +4505,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -4980,7 +4616,7 @@ public Builder mergeFrom( if (other.getIntervalDurationDays() != 0) { setIntervalDurationDays(other.getIntervalDurationDays()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -4995,19 +4631,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 16: + { + intervalDurationDays_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -5310,7 +4970,19 @@ public Schedule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -6035,7 +5707,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(12, riskLevel_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -6108,7 +5780,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, riskLevel_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -6145,7 +5817,7 @@ public boolean equals(final java.lang.Object obj) { if (!getLatestRun().equals(other.getLatestRun())) return false; } if (riskLevel_ != other.riskLevel_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6192,7 +5864,7 @@ public int hashCode() { } hash = (37 * hash) + RISK_LEVEL_FIELD_NUMBER; hash = (53 * hash) + riskLevel_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -6322,17 +5994,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -6547,7 +6212,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig o if (other.riskLevel_ != 0) { setRiskLevelValue(other.getRiskLevelValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -6562,18 +6227,118 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ScanConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + maxQps_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStartingUrlsIsMutable(); + startingUrls_.add(s); + break; + } // case 34 + case 42: + { + input.readMessage(getAuthenticationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + userAgent_ = input.readEnum(); + + break; + } // case 48 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureBlacklistPatternsIsMutable(); + blacklistPatterns_.add(s); + break; + } // case 58 + case 66: + { + input.readMessage(getScheduleFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 72: + { + int tmpRaw = input.readEnum(); + ensureTargetPlatformsIsMutable(); + targetPlatforms_.add(tmpRaw); + break; + } // case 72 + case 74: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureTargetPlatformsIsMutable(); + targetPlatforms_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 74 + case 80: + { + exportToSecurityCommandCenter_ = input.readEnum(); + + break; + } // case 80 + case 90: + { + input.readMessage(getLatestRunFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 90 + case 96: + { + riskLevel_ = input.readEnum(); + + break; + } // case 96 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -8391,7 +8156,18 @@ public ScanConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java index 2f1c0033..a98777c6 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java @@ -56,59 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ScanConfigError( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - code_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - fieldName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor; @@ -1337,7 +1284,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldName_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1354,7 +1301,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldName_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1372,7 +1319,7 @@ public boolean equals(final java.lang.Object obj) { if (code_ != other.code_) return false; if (!getFieldName().equals(other.getFieldName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1387,7 +1334,7 @@ public int hashCode() { hash = (53 * hash) + code_; hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; hash = (53 * hash) + getFieldName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1520,17 +1467,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfigError.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1626,7 +1566,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfigEr fieldName_ = other.fieldName_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1641,18 +1581,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ScanConfigError parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + code_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + fieldName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfigError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1902,7 +1867,18 @@ public ScanConfigError parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfigError(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java index a3bb4729..9e885a91 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java @@ -56,152 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ScanRun( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - executionState_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - resultState_ = rawValue; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - urlsCrawledCount_ = input.readInt64(); - break; - } - case 56: - { - urlsTestedCount_ = input.readInt64(); - break; - } - case 64: - { - hasVulnerabilities_ = input.readBool(); - break; - } - case 72: - { - progressPercent_ = input.readInt32(); - break; - } - case 82: - { - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder subBuilder = - null; - if (errorTrace_ != null) { - subBuilder = errorTrace_.toBuilder(); - } - errorTrace_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(errorTrace_); - errorTrace_ = subBuilder.buildPartial(); - } - - break; - } - case 90: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - warningTraces_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace>(); - mutable_bitField0_ |= 0x00000001; - } - warningTraces_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - warningTraces_ = java.util.Collections.unmodifiableList(warningTraces_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.ScanRunProto .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor; @@ -1073,7 +927,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < warningTraces_.size(); i++) { output.writeMessage(11, warningTraces_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1120,7 +974,7 @@ public int getSerializedSize() { for (int i = 0; i < warningTraces_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, warningTraces_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1156,7 +1010,7 @@ public boolean equals(final java.lang.Object obj) { if (!getErrorTrace().equals(other.getErrorTrace())) return false; } if (!getWarningTracesList().equals(other.getWarningTracesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1197,7 +1051,7 @@ public int hashCode() { hash = (37 * hash) + WARNING_TRACES_FIELD_NUMBER; hash = (53 * hash) + getWarningTracesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1327,19 +1181,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.ScanRun.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getWarningTracesFieldBuilder(); - } } @java.lang.Override @@ -1379,10 +1224,11 @@ public Builder clear() { } if (warningTracesBuilder_ == null) { warningTraces_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + warningTraces_ = null; warningTracesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -1550,7 +1396,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRun othe } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1565,18 +1411,105 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ScanRun parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + executionState_ = input.readEnum(); + + break; + } // case 16 + case 24: + { + resultState_ = input.readEnum(); + + break; + } // case 24 + case 34: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + urlsCrawledCount_ = input.readInt64(); + + break; + } // case 48 + case 56: + { + urlsTestedCount_ = input.readInt64(); + + break; + } // case 56 + case 64: + { + hasVulnerabilities_ = input.readBool(); + + break; + } // case 64 + case 72: + { + progressPercent_ = input.readInt32(); + + break; + } // case 72 + case 82: + { + input.readMessage(getErrorTraceFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 90: + { + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.parser(), + extensionRegistry); + if (warningTracesBuilder_ == null) { + ensureWarningTracesIsMutable(); + warningTraces_.add(m); + } else { + warningTracesBuilder_.addMessage(m); + } + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanRun) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3131,7 +3064,18 @@ public ScanRun parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRun(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java index dc3d2c51..0cd839cd 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java @@ -53,74 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ScanRunErrorTrace( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - code_ = rawValue; - break; - } - case 18: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder subBuilder = null; - if (scanConfigError_ != null) { - subBuilder = scanConfigError_.toBuilder(); - } - scanConfigError_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfigError_); - scanConfigError_ = subBuilder.buildPartial(); - } - - break; - } - case 24: - { - mostCommonHttpErrorCode_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor; @@ -533,7 +465,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (mostCommonHttpErrorCode_ != 0) { output.writeInt32(3, mostCommonHttpErrorCode_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -553,7 +485,7 @@ public int getSerializedSize() { if (mostCommonHttpErrorCode_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, mostCommonHttpErrorCode_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -575,7 +507,7 @@ public boolean equals(final java.lang.Object obj) { if (!getScanConfigError().equals(other.getScanConfigError())) return false; } if (getMostCommonHttpErrorCode() != other.getMostCommonHttpErrorCode()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -594,7 +526,7 @@ public int hashCode() { } hash = (37 * hash) + MOST_COMMON_HTTP_ERROR_CODE_FIELD_NUMBER; hash = (53 * hash) + getMostCommonHttpErrorCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -725,17 +657,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -846,7 +771,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRunError if (other.getMostCommonHttpErrorCode() != 0) { setMostCommonHttpErrorCode(other.getMostCommonHttpErrorCode()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -861,18 +786,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + code_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + input.readMessage(getScanConfigErrorFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 24: + { + mostCommonHttpErrorCode_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1270,7 +1226,18 @@ public ScanRunErrorTrace parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunErrorTrace(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java index 092ab948..978f600e 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java @@ -54,52 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ScanRunWarningTrace( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - code_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor; @@ -387,7 +341,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, code_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -401,7 +355,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -418,7 +372,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) obj; if (code_ != other.code_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -431,7 +385,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + code_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -563,17 +517,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -664,7 +611,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRunWarni if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -679,19 +626,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + code_ = input.readEnum(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -823,7 +788,18 @@ public ScanRunWarningTrace parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunWarningTrace(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java index a4ad4fdf..dbe1546d 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StartScanRunRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -357,17 +311,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -459,7 +406,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.StartScanRun name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -474,19 +421,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -645,7 +610,18 @@ public StartScanRunRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StartScanRunRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java index 970b36c4..fc532f4f 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StopScanRunRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; @@ -187,7 +141,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -199,7 +153,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -216,7 +170,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -229,7 +183,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -461,7 +408,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.StopScanRunR name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -476,19 +423,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -651,7 +616,18 @@ public StopScanRunRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StopScanRunRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java index 9488505a..ec5553a1 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java @@ -50,77 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateScanConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; @@ -271,7 +200,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(3, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -286,7 +215,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -310,7 +239,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateMask()) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -329,7 +258,7 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -461,17 +390,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -587,7 +509,7 @@ public Builder mergeFrom( if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -602,19 +524,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1084,7 +1030,18 @@ public UpdateScanConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateScanConfigRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java index bd7f2cac..630d792c 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java @@ -54,59 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ViolatingResource( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - contentType_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - resourceUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor; @@ -240,7 +187,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceUrl_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -255,7 +202,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceUrl_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -273,7 +220,7 @@ public boolean equals(final java.lang.Object obj) { if (!getContentType().equals(other.getContentType())) return false; if (!getResourceUrl().equals(other.getResourceUrl())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -288,7 +235,7 @@ public int hashCode() { hash = (53 * hash) + getContentType().hashCode(); hash = (37 * hash) + RESOURCE_URL_FIELD_NUMBER; hash = (53 * hash) + getResourceUrl().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -419,17 +366,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.ViolatingResource.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -528,7 +468,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ViolatingRes resourceUrl_ = other.resourceUrl_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -543,18 +483,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ViolatingResource parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + contentType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + resourceUrl_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ViolatingResource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -803,7 +768,18 @@ public ViolatingResource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ViolatingResource(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java index 42d98b35..0d6fe256 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java @@ -53,80 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private VulnerableHeaders( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000001; - } - headers_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000002; - } - missingHeaders_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = java.util.Collections.unmodifiableList(headers_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = java.util.Collections.unmodifiableList(missingHeaders_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; @@ -232,59 +158,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Header( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; @@ -418,7 +291,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -433,7 +306,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -451,7 +324,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getValue().equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -466,7 +339,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -600,17 +473,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -714,7 +580,7 @@ public Builder mergeFrom( value_ = other.value_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -729,19 +595,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + value_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -992,7 +882,19 @@ public Header parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1194,7 +1096,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < missingHeaders_.size(); i++) { output.writeMessage(2, missingHeaders_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1209,7 +1111,7 @@ public int getSerializedSize() { for (int i = 0; i < missingHeaders_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, missingHeaders_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1227,7 +1129,7 @@ public boolean equals(final java.lang.Object obj) { if (!getHeadersList().equals(other.getHeadersList())) return false; if (!getMissingHeadersList().equals(other.getMissingHeadersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1246,7 +1148,7 @@ public int hashCode() { hash = (37 * hash) + MISSING_HEADERS_FIELD_NUMBER; hash = (53 * hash) + getMissingHeadersList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1376,20 +1278,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getHeadersFieldBuilder(); - getMissingHeadersFieldBuilder(); - } } @java.lang.Override @@ -1397,16 +1289,18 @@ public Builder clear() { super.clear(); if (headersBuilder_ == null) { headers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + headers_ = null; headersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (missingHeadersBuilder_ == null) { missingHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + missingHeaders_ = null; missingHeadersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1559,7 +1453,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableHe } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1574,18 +1468,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + .parser(), + extensionRegistry); + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.add(m); + } else { + headersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + .parser(), + extensionRegistry); + if (missingHeadersBuilder_ == null) { + ensureMissingHeadersIsMutable(); + missingHeaders_.add(m); + } else { + missingHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2432,7 +2369,18 @@ public VulnerableHeaders parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableHeaders(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java index 03debcf3..a03a0c7a 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java @@ -52,59 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private VulnerableParameters( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameterNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - parameterNames_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - parameterNames_ = parameterNames_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; @@ -198,7 +145,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < parameterNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameterNames_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -215,7 +162,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getParameterNamesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -232,7 +179,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) obj; if (!getParameterNamesList().equals(other.getParameterNamesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,7 +194,7 @@ public int hashCode() { hash = (37 * hash) + PARAMETER_NAMES_FIELD_NUMBER; hash = (53 * hash) + getParameterNamesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -377,17 +324,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -491,7 +431,7 @@ public Builder mergeFrom( } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -506,19 +446,38 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureParameterNamesIsMutable(); + parameterNames_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -726,7 +685,18 @@ public VulnerableParameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableParameters(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java index f72469e0..c3553905 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Xss( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stackTraces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - stackTraces_.add(s); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - errorMessage_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - stackTraces_ = stackTraces_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto .internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; @@ -258,7 +198,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -278,7 +218,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -296,7 +236,7 @@ public boolean equals(final java.lang.Object obj) { if (!getStackTracesList().equals(other.getStackTracesList())) return false; if (!getErrorMessage().equals(other.getErrorMessage())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,7 +253,7 @@ public int hashCode() { } hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getErrorMessage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -442,17 +382,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.websecurityscanner.v1beta.Xss.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -559,7 +492,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.Xss other) { errorMessage_ = other.errorMessage_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -574,17 +507,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.Xss parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStackTracesIsMutable(); + stackTraces_.add(s); + break; + } // case 10 + case 18: + { + errorMessage_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.Xss) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -896,7 +856,18 @@ public Xss parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Xss(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/renovate.json b/renovate.json index d6b19168..e729239c 100644 --- a/renovate.json +++ b/renovate.json @@ -10,6 +10,7 @@ ":maintainLockFilesDisabled", ":autodetectPinVersions" ], + "ignorePaths": [".kokoro/requirements.txt"], "packageRules": [ { "packagePatterns": [ diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index e264a13a..444710ec 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-websecurityscanner - 2.2.2 + 2.2.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index edfb37d9..3e0568f2 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-websecurityscanner - 2.2.2 + 2.2.4 diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java index 0165340a..14794010 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() 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 WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerStubSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java index 6b45bc3b..2b22896a 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/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 WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java index 37635708..bdbe327f 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() 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 WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder() .setTransportChannelProvider( diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java index 4b0f7a86..aeac6b1b 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/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 WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder().setEndpoint(myEndpoint).build(); WebSecurityScannerClient webSecurityScannerClient = diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java index d5be65fc..d768930e 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java index 74ffd593..25407243 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java index 365e7e26..3980d29b 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder().setName("name3373707").build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java index f5420912..a9686e26 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder().setName("name3373707").build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java index aca1c9d1..4573ad0c 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetFinding() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder().setName("name3373707").build(); ApiFuture future = webSecurityScannerClient.getFindingCallable().futureCall(request); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java index a022e022..c9d55db2 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFinding() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder().setName("name3373707").build(); Finding response = webSecurityScannerClient.getFinding(request); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java index 40a2e73d..790005c9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder().setName("name3373707").build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java index 7d05af13..6df07bc9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder().setName("name3373707").build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java index 35f5963c..d318bf89 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder().setName("name3373707").build(); ApiFuture future = webSecurityScannerClient.getScanRunCallable().futureCall(request); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java index 4182b871..77d84485 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder().setName("name3373707").build(); ScanRun response = webSecurityScannerClient.getScanRun(request); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java index 8128b5be..dc4f0f83 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrls() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java index 85d06350..a6118a64 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrlsPaged() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java index ad9bf66c..1d85a034 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrls() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java index 0549b8d2..11256a7a 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindings() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java index 308c9c27..de812a34 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingsPaged() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java index 8d3b4586..ee2b52d9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindings() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java index bf9db34a..cfcf7c07 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingTypeStats() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder().setParent("parent-995424086").build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java index 17da1008..851a879b 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStats() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder().setParent("parent-995424086").build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java index 75109e33..32d26aaa 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigs() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java index 94ee8483..04080282 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigsPaged() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java index 8a97137b..9b9f9081 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigs() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java index ea35bc6c..3a0b6373 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRuns() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java index 525941ed..4fe370d0 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRunsPaged() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java index b63bddb3..65baa2b6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRuns() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java index b41ee017..7711f2a1 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStartScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder().setName("name3373707").build(); ApiFuture future = diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java index 68025cf8..1e5b3312 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder().setName("name3373707").build(); ScanRun response = webSecurityScannerClient.startScanRun(request); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java index 94e0f8bb..f9ddbd00 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStopScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder().setName("name3373707").build(); ApiFuture future = diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java index 7af2e73a..f69fd4ec 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder().setName("name3373707").build(); ScanRun response = webSecurityScannerClient.stopScanRun(request); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java index cea409c3..c1d5a6bd 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java index a29bbab6..4e6afc55 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java index 10363a8c..e20eead0 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() 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 WebSecurityScannerSettings.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java index 0054c532..d11142bd 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() 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 WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerStubSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java index d6a5889f..70192069 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/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 WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java index e8a0abd4..db26f1f5 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() 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 WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder() .setTransportChannelProvider( diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java index 5e6cc175..7af22c1d 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/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 WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder().setEndpoint(myEndpoint).build(); WebSecurityScannerClient webSecurityScannerClient = diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java index 575bd274..727ec8a7 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java index ea53bdff..a4c85d1c 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java index 63202718..34b359bc 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfigProjectnameScanconfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); ScanConfig scanConfig = ScanConfig.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java index f0a826cb..cd7e4682 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfigStringScanconfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); ScanConfig scanConfig = ScanConfig.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java index 318e0813..8c4fd2af 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java index 25c76050..1947e5c5 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java index aa69ac77..d5967bcc 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfigScanconfigname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); webSecurityScannerClient.deleteScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java index 83a25761..0414c1e6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfigString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); webSecurityScannerClient.deleteScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java index abf0ec3e..62daf327 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetFinding() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java index e3e6ac24..ee6f47f9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFinding() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java index cf08995d..42d831e5 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFindingFindingname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]"); Finding response = webSecurityScannerClient.getFinding(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java index 82caa2ee..a1f432b9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFindingString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java index b1bfa157..305ccbeb 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java index 1a49e57f..5002e651 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java index c90631d7..576ec835 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfigScanconfigname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); ScanConfig response = webSecurityScannerClient.getScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java index 47c5cbd3..58893aaf 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfigString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); ScanConfig response = webSecurityScannerClient.getScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java index 9d46af37..4b3128ea 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java index 24aa7b9a..f008a4f9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java index 3473b887..b648e9ed 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRunScanrunname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ScanRun response = webSecurityScannerClient.getScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java index 326bcb94..7818875a 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRunString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ScanRun response = webSecurityScannerClient.getScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java index 4c85e3ae..2a8da9c9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrls() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java index 9b80874c..a05a94dc 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrlsPaged() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java index c7a68c46..641e3ce4 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrls() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java index 0977ec19..4aeab865 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrlsScanrunname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java index a02c74ea..0b73c9a7 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrlsString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java index 110132b9..94614bab 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindings() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java index ebeba969..66b5fd5d 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingsPaged() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java index 3c9686e3..3e707a4a 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindings() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java index 96d74aef..eef02f68 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingsScanrunnameString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); String filter = "filter-1274492040"; diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java index 1c99bf6e..974cfe51 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingsStringString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); String filter = "filter-1274492040"; diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java index d4b4f87a..bd4a491c 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingTypeStats() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java index 5b3cc258..149648c8 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStats() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java index 9d45b551..8a4929d3 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStatsScanrunname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java index 022a70ef..8de69a53 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStatsString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java index 9414028e..a30654ac 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigs() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java index 8ff38689..c2be7ab3 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigsPaged() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java index e21641f0..58979eaf 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigs() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java index 8bb2b6a9..e5c74c17 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigsProjectname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java index 3fe88a3e..6aa157df 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigsString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java index d221b828..35a4c74f 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRuns() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java index 833ec846..f53278a6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRunsPaged() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java index 854e4de0..6e1c6fe9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRuns() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java index a7beab88..b51e29b7 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRunsScanconfigname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java index 2c166a33..6dae71b3 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRunsString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java index a8b37337..a52d2902 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStartScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java index 5df8e708..55722419 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java index 6da3d9e1..66ec2a30 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRunScanconfigname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); ScanRun response = webSecurityScannerClient.startScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java index fc363f92..6aea3c66 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRunString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); ScanRun response = webSecurityScannerClient.startScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java index 00de868d..387b05c9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStopScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java index 47577125..17e55207 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java index 6d73b764..28f0b267 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRunScanrunname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ScanRun response = webSecurityScannerClient.stopScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java index 9086eebb..59e05185 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRunString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ScanRun response = webSecurityScannerClient.stopScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java index a2c5687c..e4b9f39e 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java index fa428674..e6de0264 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java index b1fc7d58..2f70212e 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateScanConfigScanconfigFieldmask() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfig scanConfig = ScanConfig.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java index 27874bcb..a109ebc6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() 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 WebSecurityScannerSettings.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java index 535fb251..b8eb07c1 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() 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 WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerStubSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java index b297287b..2bf17518 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/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 WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java index ef281a26..53a9f6e6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() 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 WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder() .setTransportChannelProvider( diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java index a0197f2f..5625ec1d 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/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 WebSecurityScannerSettings webSecurityScannerSettings = WebSecurityScannerSettings.newBuilder().setEndpoint(myEndpoint).build(); WebSecurityScannerClient webSecurityScannerClient = diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java index fa9af7ec..0ebf6b61 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java index 288c7943..09564644 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java index aaa3aefc..09443a85 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfigProjectnameScanconfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); ScanConfig scanConfig = ScanConfig.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java index d72e9827..f2cbabe6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfigStringScanconfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); ScanConfig scanConfig = ScanConfig.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java index 28063182..b95137d9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java index afc60d6a..41dd0f35 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java index a5fb2feb..ba78e857 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfigScanconfigname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); webSecurityScannerClient.deleteScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java index ed8cf896..2924cc07 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfigString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); webSecurityScannerClient.deleteScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java index 5f43cc0d..0d77a8d9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetFinding() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java index 7e171b7f..f6bbab63 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFinding() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java index 7852f9be..640a2eac 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFindingFindingname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]"); Finding response = webSecurityScannerClient.getFinding(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java index 6e267654..5175119e 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFindingString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java index 5f28cfdb..855da348 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java index ef7d3e7a..8a9afa87 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java index c45234cd..e7b2c9f6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfigScanconfigname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); ScanConfig response = webSecurityScannerClient.getScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java index 53fac7e2..b86ed99c 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfigString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); ScanConfig response = webSecurityScannerClient.getScanConfig(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java index 7ad7a7dd..72939145 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java index 9b82a1d1..5c3cb7c0 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java index e26bb669..81d3d703 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRunScanrunname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ScanRun response = webSecurityScannerClient.getScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java index cf78eea9..a22e0fda 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRunString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ScanRun response = webSecurityScannerClient.getScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java index d81560dc..b2052717 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrls() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java index 2f99a3ae..623321fc 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrlsPaged() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java index 6a1ff75c..f7752c6e 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrls() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java index 421920bb..7ec157bb 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrlsScanrunname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java index 76821182..a5040b11 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrlsString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java index 6a66c784..15bb6580 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindings() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java index cfb8d63a..ca93615b 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingsPaged() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java index 72dfbbef..d31fef30 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindings() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java index d314e24e..294822da 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingsScanrunnameString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); String filter = "filter-1274492040"; diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java index 5bcf1fa0..6e996cf8 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingsStringString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); String filter = "filter-1274492040"; diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java index 88d7e3e6..8b525fa6 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingTypeStats() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java index df8125f0..ecf8d88d 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStats() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java index 87c6c407..92c2e034 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStatsScanrunname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java index cbd65264..157412e5 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStatsString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java index 30b52423..54fe14b9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigs() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java index 37a8b60a..2e2e6cf4 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigsPaged() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java index bf643261..d71f45a7 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigs() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java index c58c72be..8d2e7b54 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigsProjectname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java index 980006c0..aa503883 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigsString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java index e5a440d7..38748529 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRuns() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java index fc1b1534..ce495cdc 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRunsPaged() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java index aace25f0..8eee3092 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRuns() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java index 1070d0a4..fb0a0fac 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRunsScanconfigname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java index 94b19f26..bc07cbc7 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRunsString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java index e9975035..427f2427 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStartScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java index a8d52ca7..38e5cd05 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java index f8ba48cd..2dbe3bb9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRunScanconfigname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); ScanRun response = webSecurityScannerClient.startScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java index c5c411f1..742df115 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRunString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); ScanRun response = webSecurityScannerClient.startScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java index 4dc71043..e62dc736 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStopScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java index b13712b0..186a380d 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRun() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java index c881236a..fe8c7c02 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRunScanrunname() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ScanRun response = webSecurityScannerClient.stopScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java index d2053496..69ca907f 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRunString() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ScanRun response = webSecurityScannerClient.stopScanRun(name); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java index b2ac2033..18d21cc4 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java index c9526de7..07cef0b9 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateScanConfig() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java index d0111a8a..39a6238a 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateScanConfigScanconfigFieldmask() 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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfig scanConfig = ScanConfig.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java index 9b6007a9..76b2acc8 100644 --- a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java +++ b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() 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 WebSecurityScannerSettings.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 7e707ce2..c21b2ad6 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import diff --git a/versions.txt b/versions.txt index 771c2b59..2b07b59c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-websecurityscanner:2.2.4:2.2.4 -grpc-google-cloud-websecurityscanner-v1alpha:0.89.4:0.89.4 -grpc-google-cloud-websecurityscanner-v1beta:0.89.4:0.89.4 -grpc-google-cloud-websecurityscanner-v1:2.2.4:2.2.4 -proto-google-cloud-websecurityscanner-v1alpha:0.89.4:0.89.4 -proto-google-cloud-websecurityscanner-v1beta:0.89.4:0.89.4 -proto-google-cloud-websecurityscanner-v1:2.2.4:2.2.4 +google-cloud-websecurityscanner:2.3.0:2.3.0 +grpc-google-cloud-websecurityscanner-v1alpha:0.90.0:0.90.0 +grpc-google-cloud-websecurityscanner-v1beta:0.90.0:0.90.0 +grpc-google-cloud-websecurityscanner-v1:2.3.0:2.3.0 +proto-google-cloud-websecurityscanner-v1alpha:0.90.0:0.90.0 +proto-google-cloud-websecurityscanner-v1beta:0.90.0:0.90.0 +proto-google-cloud-websecurityscanner-v1:2.3.0:2.3.0