diff --git a/.github/release-please.yml b/.github/release-please.yml index 827446828..dce2c8450 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -1 +1,2 @@ releaseType: java-yoshi +bumpMinorPreMajor: true \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..c0af21a6a --- /dev/null +++ b/.gitignore @@ -0,0 +1,43 @@ +# Packages +dist +bin +var +sdist +target + +# Unit test / coverage reports +.coverage +.tox +nosetests.xml + +# Translations +*.mo + +# Mr Developer +.mr.developer.cfg + +.metadata +.project +.pydevproject +*.iml +.idea +.settings +.DS_Store +.classpath + +# Built documentation +docs/ + + +# Wheel directory used in Travis builds. +gcloud-java-wheels/ +src/test/resources/gcd-head.zip +src/test/resources/gcd-v1beta2-rev1-2.1.1.zip + +# API key file containing value of GOOGLE_API_KEY for integration tests +api_key + +# Python utilities +*.pyc +artman-genfiles +venv \ No newline at end of file diff --git a/.kokoro/build.sh b/.kokoro/build.sh index fa132f410..f1ae58408 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -27,6 +27,7 @@ echo ${JOB_TYPE} mvn install -B -V \ -DskipTests=true \ -Dclirr.skip=true \ + -Denforcer.skip=true \ -Dmaven.javadoc.skip=true \ -Dgcloud.download.skip=true \ -T 1C @@ -38,23 +39,41 @@ fi case ${JOB_TYPE} in test) - mvn test -B -Dclirr.skip=true + mvn test -B -Dclirr.skip=true -Denforcer.skip=true bash ${KOKORO_GFILE_DIR}/codecov.sh bash .kokoro/coerce_logs.sh ;; lint) - mvn com.coveo:fmt-maven-plugin:check + mvn \ + -Penable-samples \ + com.coveo:fmt-maven-plugin:check ;; javadoc) mvn javadoc:javadoc javadoc:test-javadoc ;; integration) - mvn -B ${INTEGRATION_TEST_ARGS} -DtrimStackTrace=false -Dclirr.skip=true -fae verify + mvn -B ${INTEGRATION_TEST_ARGS} \ + -Penable-integration-tests \ + -DtrimStackTrace=false \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -fae \ + verify + bash .kokoro/coerce_logs.sh + ;; +samples) + mvn -B \ + -Penable-samples \ + -DtrimStackTrace=false \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -fae \ + verify bash .kokoro/coerce_logs.sh ;; clirr) - mvn -B clirr:check + mvn -B -Denforcer.skip=true clirr:check ;; *) ;; -esac \ No newline at end of file +esac diff --git a/.kokoro/continuous/samples.cfg b/.kokoro/continuous/samples.cfg new file mode 100644 index 000000000..fa7b493d0 --- /dev/null +++ b/.kokoro/continuous/samples.cfg @@ -0,0 +1,31 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "samples" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + } + } +} diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 379265804..8254051c0 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -23,5 +23,9 @@ echo $JOB_TYPE export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" -mvn install -DskipTests=true -B -V +# this should run maven enforcer +mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true + mvn -B dependency:analyze -DfailOnWarning=true diff --git a/.kokoro/nightly/samples.cfg b/.kokoro/nightly/samples.cfg new file mode 100644 index 000000000..9a9102490 --- /dev/null +++ b/.kokoro/nightly/samples.cfg @@ -0,0 +1,31 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "samples" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + } + } +} diff --git a/.kokoro/presubmit/samples.cfg b/.kokoro/presubmit/samples.cfg new file mode 100644 index 000000000..fa7b493d0 --- /dev/null +++ b/.kokoro/presubmit/samples.cfg @@ -0,0 +1,31 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "samples" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + } + } +} diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index d2530fc5c..bb1eb7f04 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -33,7 +33,7 @@ python3 -m pip install gcp-docuploader # compile all packages mvn clean install -B -DskipTests=true -NAME=securitycenter +NAME=google-cloud-securitycenter VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) # build the docs diff --git a/CHANGELOG.md b/CHANGELOG.md index e1100d2ec..e5df591bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [0.118.0](https://www.github.com/googleapis/java-securitycenter/compare/v0.117.0...v0.118.0) (2020-01-07) + + +### Features + +* add Resource to ListFindingsResult ([#27](https://www.github.com/googleapis/java-securitycenter/issues/27)) ([66d9b4a](https://www.github.com/googleapis/java-securitycenter/commit/66d9b4a8a3dabbaf72c2180995ef9ffe4da37aba)) + + +### Dependencies + +* update dependency com.google.protobuf:protobuf-java to v3.11.1 ([e371031](https://www.github.com/googleapis/java-securitycenter/commit/e3710312812e8e157462eab859b6a3738c226537)) +* update dependency io.grpc:grpc-bom to v1.26.0 ([#26](https://www.github.com/googleapis/java-securitycenter/issues/26)) ([0a961e4](https://www.github.com/googleapis/java-securitycenter/commit/0a961e4f4862e705595445b028184b594477d398)) +* update gax.version to v1.52.0 ([#20](https://www.github.com/googleapis/java-securitycenter/issues/20)) ([3368530](https://www.github.com/googleapis/java-securitycenter/commit/336853087782ff5cd8baa150858a898ff10c5f41)) + + +### Documentation + +* **regen:** update generated javadoc ([#21](https://www.github.com/googleapis/java-securitycenter/issues/21)) ([e9297db](https://www.github.com/googleapis/java-securitycenter/commit/e9297dbb5995e13b4eecd39daa545329a0da1407)) + ## [0.117.0](https://www.github.com/googleapis/java-securitycenter/compare/0.116.0...v0.117.0) (2019-11-13) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ebbb59e53..085021dde 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,4 +25,106 @@ information on using pull requests. ## Community Guidelines This project follows -[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/). \ No newline at end of file +[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/). + +## Building the project + +To build, package, and run all unit tests run the command + +``` +mvn clean verify +``` + +### Running Integration tests + +To include integration tests when building the project, you need access to +a GCP Project with a valid service account. + +For instructions on how to generate a service account and corresponding +credentials JSON see: [Creating a Service Account][1]. + +Then run the following to build, package, run all unit tests and run all +integration tests. + +```bash +export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json +mvn -Penable-integration-tests clean verify +``` + +## Code Samples + +Code Samples must be bundled in separate Maven modules, and guarded by a +Maven profile with the name `enable-samples`. + +The samples must be separate from the primary project for a few reasons: +1. Primary projects have a minimum Java version of Java 7 whereas samples have + a minimum Java version of Java 8. Due to this we need the ability to + selectively exclude samples from a build run. +2. Many code samples depend on external GCP services and need + credentials to access the service. +3. Code samples are not released as Maven artifacts and must be excluded from + release builds. + +### Building + +```bash +mvn -Penable-samples clean verify +``` + +Some samples require access to GCP services and require a service account: + +```bash +export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json +mvn -Penable-samples clean verify +``` + +### Profile Config + +1. To add samples in a profile to your Maven project, add the following to your +`pom.xml` + + ```xml + + [...] + + + enable-samples + + sample + + + + [...] + + ``` + +2. [Activate](#profile-activation) the profile. +3. Define your samples in a normal Maven project in the `samples/` directory + +### Profile Activation + +To include code samples when building and testing the project, enable the +`enable-samples` Maven profile. + +#### Command line + +To activate the Maven profile on the command line add `-Penable-samples` to your +Maven command. + +#### Maven `settings.xml` + +To activate the Maven profile in your `~/.m2/settings.xml` add an entry of +`enable-samples` following the instructions in [Active Profiles][2]. + +This method has the benefit of applying to all projects you build (and is +respected by IntelliJ IDEA) and is recommended if you are going to be +contributing samples to several projects. + +#### IntelliJ IDEA + +To activate the Maven Profile inside IntelliJ IDEA, follow the instructions in +[Activate Maven profiles][3] to activate `enable-samples`. + +[1]: https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account +[2]: https://maven.apache.org/settings.html#Active_Profiles +[3]: https://www.jetbrains.com/help/idea/work-with-maven-profiles.html#activate_maven_profiles diff --git a/google-cloud-securitycenter-bom/pom.xml b/google-cloud-securitycenter-bom/pom.xml index 0771bdf52..18aee351c 100644 --- a/google-cloud-securitycenter-bom/pom.xml +++ b/google-cloud-securitycenter-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-bom - 0.117.0 + 0.118.0 pom com.google.cloud google-cloud-shared-config - 0.2.1 + 0.3.1 Google Cloud securitycenter BOM @@ -64,27 +64,27 @@ com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.82.0 + 0.83.0 com.google.cloud google-cloud-securitycenter - 0.117.0 + 0.118.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.82.0 + 0.83.0 diff --git a/google-cloud-securitycenter/pom.xml b/google-cloud-securitycenter/pom.xml index 78369b80d..0362d136e 100644 --- a/google-cloud-securitycenter/pom.xml +++ b/google-cloud-securitycenter/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-securitycenter - 0.117.0 + 0.118.0 jar Google Cloud Security Command Center https://github.com/googleapis/java-securitycenter @@ -11,7 +11,7 @@ com.google.cloud google-cloud-securitycenter-parent - 0.117.0 + 0.118.0 google-cloud-securitycenter diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java index c17501d6e..aef724f5c 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java @@ -192,10 +192,10 @@ public final OperationsClient getOperationsClient() { * } * * - * @param parent Resource name of the new source's parent. Its format should be + * @param parent Required. Resource name of the new source's parent. Its format should be * "organizations/[organization_id]". - * @param source The Source being created, only the display_name and description will be used. All - * other fields will be ignored. + * @param source Required. The Source being created, only the display_name and description will be + * used. All other fields will be ignored. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Source createSource(OrganizationName parent, Source source) { @@ -222,10 +222,10 @@ public final Source createSource(OrganizationName parent, Source source) { * } * * - * @param parent Resource name of the new source's parent. Its format should be + * @param parent Required. Resource name of the new source's parent. Its format should be * "organizations/[organization_id]". - * @param source The Source being created, only the display_name and description will be used. All - * other fields will be ignored. + * @param source Required. The Source being created, only the display_name and description will be + * used. All other fields will be ignored. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Source createSource(String parent, Source source) { @@ -299,13 +299,13 @@ public final UnaryCallable createSourceCallable() { * } * * - * @param parent Resource name of the new finding's parent. Its format should be + * @param parent Required. Resource name of the new finding's parent. Its format should be * "organizations/[organization_id]/sources/[source_id]". - * @param findingId Unique identifier provided by the client within the parent scope. It must be - * alphanumeric and less than or equal to 32 characters and greater than 0 characters in - * length. - * @param finding The Finding being created. The name and security_marks will be ignored as they - * are both output only fields on this resource. + * @param findingId Required. Unique identifier provided by the client within the parent scope. It + * must be alphanumeric and less than or equal to 32 characters and greater than 0 characters + * in length. + * @param finding Required. The Finding being created. The name and security_marks will be ignored + * as they are both output only fields on this resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Finding createFinding(SourceName parent, String findingId, Finding finding) { @@ -334,13 +334,13 @@ public final Finding createFinding(SourceName parent, String findingId, Finding * } * * - * @param parent Resource name of the new finding's parent. Its format should be + * @param parent Required. Resource name of the new finding's parent. Its format should be * "organizations/[organization_id]/sources/[source_id]". - * @param findingId Unique identifier provided by the client within the parent scope. It must be - * alphanumeric and less than or equal to 32 characters and greater than 0 characters in - * length. - * @param finding The Finding being created. The name and security_marks will be ignored as they - * are both output only fields on this resource. + * @param findingId Required. Unique identifier provided by the client within the parent scope. It + * must be alphanumeric and less than or equal to 32 characters and greater than 0 characters + * in length. + * @param finding Required. The Finding being created. The name and security_marks will be ignored + * as they are both output only fields on this resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Finding createFinding(String parent, String findingId, Finding finding) { @@ -514,7 +514,7 @@ public final UnaryCallable getIamPolicyCallable() { * } * * - * @param name Name of the organization to get organization settings for. Its format is + * @param name Required. Name of the organization to get organization settings for. Its format is * "organizations/[organization_id]/organizationSettings". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -540,7 +540,7 @@ public final OrganizationSettings getOrganizationSettings(OrganizationSettingsNa * } * * - * @param name Name of the organization to get organization settings for. Its format is + * @param name Required. Name of the organization to get organization settings for. Its format is * "organizations/[organization_id]/organizationSettings". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -611,7 +611,7 @@ public final OrganizationSettings getOrganizationSettings( * } * * - * @param name Relative resource name of the source. Its format is + * @param name Required. Relative resource name of the source. Its format is * "organizations/[organization_id]/source/[source_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -635,7 +635,7 @@ public final Source getSource(SourceName name) { * } * * - * @param name Relative resource name of the source. Its format is + * @param name Required. Relative resource name of the source. Its format is * "organizations/[organization_id]/source/[source_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -782,7 +782,7 @@ public final UnaryCallable groupAssetsC * Filters an organization or source's findings and groups them by their specified properties. * *

To group across all sources provide a `-` as the source id. Example: - * /v1/organizations/123/sources/-/findings + * /v1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -796,12 +796,12 @@ public final UnaryCallable groupAssetsC * } * * - * @param parent Name of the source to groupBy. Its format is + * @param parent Required. Name of the source to groupBy. Its format is * "organizations/[organization_id]/sources/[source_id]". To groupBy across all sources - * provide a source_id of `-`. For example: organizations/123/sources/- - * @param groupBy Expression that defines what assets fields to use for grouping (including - * `state_change`). The string value should follow SQL syntax: comma separated list of fields. - * For example: "parent,resource_name". + * provide a source_id of `-`. For example: organizations/{organization_id}/sources/- + * @param groupBy Required. Expression that defines what assets fields to use for grouping + * (including `state_change`). The string value should follow SQL syntax: comma separated list + * of fields. For example: "parent,resource_name". *

The following fields are supported: *

* resource_name * category * state * parent *

The following fields are supported when compare_duration is set: @@ -822,7 +822,7 @@ public final GroupFindingsPagedResponse groupFindings(SourceName parent, String * Filters an organization or source's findings and groups them by their specified properties. * *

To group across all sources provide a `-` as the source id. Example: - * /v1/organizations/123/sources/-/findings + * /v1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -836,12 +836,12 @@ public final GroupFindingsPagedResponse groupFindings(SourceName parent, String * } * * - * @param parent Name of the source to groupBy. Its format is + * @param parent Required. Name of the source to groupBy. Its format is * "organizations/[organization_id]/sources/[source_id]". To groupBy across all sources - * provide a source_id of `-`. For example: organizations/123/sources/- - * @param groupBy Expression that defines what assets fields to use for grouping (including - * `state_change`). The string value should follow SQL syntax: comma separated list of fields. - * For example: "parent,resource_name". + * provide a source_id of `-`. For example: organizations/{organization_id}/sources/- + * @param groupBy Required. Expression that defines what assets fields to use for grouping + * (including `state_change`). The string value should follow SQL syntax: comma separated list + * of fields. For example: "parent,resource_name". *

The following fields are supported: *

* resource_name * category * state * parent *

The following fields are supported when compare_duration is set: @@ -859,7 +859,7 @@ public final GroupFindingsPagedResponse groupFindings(String parent, String grou * Filters an organization or source's findings and groups them by their specified properties. * *

To group across all sources provide a `-` as the source id. Example: - * /v1/organizations/123/sources/-/findings + * /v1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -889,7 +889,7 @@ public final GroupFindingsPagedResponse groupFindings(GroupFindingsRequest reque * Filters an organization or source's findings and groups them by their specified properties. * *

To group across all sources provide a `-` as the source id. Example: - * /v1/organizations/123/sources/-/findings + * /v1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -919,7 +919,7 @@ public final GroupFindingsPagedResponse groupFindings(GroupFindingsRequest reque * Filters an organization or source's findings and groups them by their specified properties. * *

To group across all sources provide a `-` as the source id. Example: - * /v1/organizations/123/sources/-/findings + * /v1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -1035,7 +1035,7 @@ public final UnaryCallable listAssetsCall * Lists an organization or source's findings. * *

To list across all sources provide a `-` as the source id. Example: - * /v1/organizations/123/sources/-/findings + * /v1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -1063,7 +1063,7 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) * Lists an organization or source's findings. * *

To list across all sources provide a `-` as the source id. Example: - * /v1/organizations/123/sources/-/findings + * /v1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -1091,7 +1091,7 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) * Lists an organization or source's findings. * *

To list across all sources provide a `-` as the source id. Example: - * /v1/organizations/123/sources/-/findings + * /v1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -1135,7 +1135,7 @@ public final UnaryCallable listFindin * } * * - * @param parent Resource name of the parent of sources to list. Its format should be + * @param parent Required. Resource name of the parent of sources to list. Its format should be * "organizations/[organization_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1162,7 +1162,7 @@ public final ListSourcesPagedResponse listSources(OrganizationName parent) { * } * * - * @param parent Resource name of the parent of sources to list. Its format should be + * @param parent Required. Resource name of the parent of sources to list. Its format should be * "organizations/[organization_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1268,7 +1268,7 @@ public final UnaryCallable listSourcesC * } * * - * @param parent Name of the organization to run asset discovery for. Its format is + * @param parent Required. Name of the organization to run asset discovery for. Its format is * "organizations/[organization_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1300,7 +1300,7 @@ public final OperationFuture runAssetDiscovery * } * * - * @param parent Name of the organization to run asset discovery for. Its format is + * @param parent Required. Name of the organization to run asset discovery for. Its format is * "organizations/[organization_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1410,11 +1410,11 @@ public final UnaryCallable runAssetDiscover * } * * - * @param name The relative resource name of the finding. See: + * @param name Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - * "organizations/123/sources/456/finding/789". - * @param state The desired State of the finding. - * @param startTime The time at which the updated state takes effect. + * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + * @param state Required. The desired State of the finding. + * @param startTime Required. The time at which the updated state takes effect. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Finding setFindingState(FindingName name, Finding.State state, Timestamp startTime) { @@ -1443,11 +1443,11 @@ public final Finding setFindingState(FindingName name, Finding.State state, Time * } * * - * @param name The relative resource name of the finding. See: + * @param name Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - * "organizations/123/sources/456/finding/789". - * @param state The desired State of the finding. - * @param startTime The time at which the updated state takes effect. + * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + * @param state Required. The desired State of the finding. + * @param startTime Required. The time at which the updated state takes effect. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Finding setFindingState(String name, Finding.State state, Timestamp startTime) { @@ -1750,8 +1750,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * } * * - * @param finding The finding resource to update or create if it does not already exist. parent, - * security_marks, and update_time will be ignored. + * @param finding Required. The finding resource to update or create if it does not already exist. + * parent, security_marks, and update_time will be ignored. *

In the case of creation, the finding id portion of the name must be alphanumeric and * less than or equal to 32 characters and greater than 0 characters in length. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1822,7 +1822,7 @@ public final UnaryCallable updateFindingCallable( * } * * - * @param organizationSettings The organization settings resource to update. + * @param organizationSettings Required. The organization settings resource to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OrganizationSettings updateOrganizationSettings( @@ -1895,7 +1895,7 @@ public final OrganizationSettings updateOrganizationSettings( * } * * - * @param source The source resource to update. + * @param source Required. The source resource to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Source updateSource(Source source) { @@ -1962,7 +1962,7 @@ public final UnaryCallable updateSourceCallable() { * } * * - * @param securityMarks The security marks resource to update. + * @param securityMarks Required. The security marks resource to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SecurityMarks updateSecurityMarks(SecurityMarks securityMarks) { diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java index 464ae2df1..6d987164e 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java @@ -700,9 +700,9 @@ public static class Builder extends StubSettings.Builder * - * @param parent Resource name of the new source's parent. Its format should be + * @param parent Required. Resource name of the new source's parent. Its format should be * "organizations/[organization_id]". - * @param source The Source being created, only the display_name and description will be used. All - * other fields will be ignored. + * @param source Required. The Source being created, only the display_name and description will be + * used. All other fields will be ignored. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Source createSource(OrganizationName parent, Source source) { @@ -222,10 +222,10 @@ public final Source createSource(OrganizationName parent, Source source) { * } * * - * @param parent Resource name of the new source's parent. Its format should be + * @param parent Required. Resource name of the new source's parent. Its format should be * "organizations/[organization_id]". - * @param source The Source being created, only the display_name and description will be used. All - * other fields will be ignored. + * @param source Required. The Source being created, only the display_name and description will be + * used. All other fields will be ignored. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Source createSource(String parent, Source source) { @@ -299,13 +299,13 @@ public final UnaryCallable createSourceCallable() { * } * * - * @param parent Resource name of the new finding's parent. Its format should be + * @param parent Required. Resource name of the new finding's parent. Its format should be * "organizations/[organization_id]/sources/[source_id]". - * @param findingId Unique identifier provided by the client within the parent scope. It must be - * alphanumeric and less than or equal to 32 characters and greater than 0 characters in - * length. - * @param finding The Finding being created. The name and security_marks will be ignored as they - * are both output only fields on this resource. + * @param findingId Required. Unique identifier provided by the client within the parent scope. It + * must be alphanumeric and less than or equal to 32 characters and greater than 0 characters + * in length. + * @param finding Required. The Finding being created. The name and security_marks will be ignored + * as they are both output only fields on this resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Finding createFinding(SourceName parent, String findingId, Finding finding) { @@ -334,13 +334,13 @@ public final Finding createFinding(SourceName parent, String findingId, Finding * } * * - * @param parent Resource name of the new finding's parent. Its format should be + * @param parent Required. Resource name of the new finding's parent. Its format should be * "organizations/[organization_id]/sources/[source_id]". - * @param findingId Unique identifier provided by the client within the parent scope. It must be - * alphanumeric and less than or equal to 32 characters and greater than 0 characters in - * length. - * @param finding The Finding being created. The name and security_marks will be ignored as they - * are both output only fields on this resource. + * @param findingId Required. Unique identifier provided by the client within the parent scope. It + * must be alphanumeric and less than or equal to 32 characters and greater than 0 characters + * in length. + * @param finding Required. The Finding being created. The name and security_marks will be ignored + * as they are both output only fields on this resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Finding createFinding(String parent, String findingId, Finding finding) { @@ -514,7 +514,7 @@ public final UnaryCallable getIamPolicyCallable() { * } * * - * @param name Name of the organization to get organization settings for. Its format is + * @param name Required. Name of the organization to get organization settings for. Its format is * "organizations/[organization_id]/organizationSettings". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -540,7 +540,7 @@ public final OrganizationSettings getOrganizationSettings(OrganizationSettingsNa * } * * - * @param name Name of the organization to get organization settings for. Its format is + * @param name Required. Name of the organization to get organization settings for. Its format is * "organizations/[organization_id]/organizationSettings". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -611,7 +611,7 @@ public final OrganizationSettings getOrganizationSettings( * } * * - * @param name Relative resource name of the source. Its format is + * @param name Required. Relative resource name of the source. Its format is * "organizations/[organization_id]/source/[source_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -635,7 +635,7 @@ public final Source getSource(SourceName name) { * } * * - * @param name Relative resource name of the source. Its format is + * @param name Required. Relative resource name of the source. Its format is * "organizations/[organization_id]/source/[source_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -782,7 +782,7 @@ public final UnaryCallable groupAssetsC * Filters an organization or source's findings and groups them by their specified properties. * *

To group across all sources provide a `-` as the source id. Example: - * /v1beta1/organizations/123/sources/-/findings + * /v1beta1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -796,12 +796,12 @@ public final UnaryCallable groupAssetsC * } * * - * @param parent Name of the source to groupBy. Its format is + * @param parent Required. Name of the source to groupBy. Its format is * "organizations/[organization_id]/sources/[source_id]". To groupBy across all sources - * provide a source_id of `-`. For example: organizations/123/sources/- - * @param groupBy Expression that defines what assets fields to use for grouping (including - * `state`). The string value should follow SQL syntax: comma separated list of fields. For - * example: "parent,resource_name". + * provide a source_id of `-`. For example: organizations/{organization_id}/sources/- + * @param groupBy Required. Expression that defines what assets fields to use for grouping + * (including `state`). The string value should follow SQL syntax: comma separated list of + * fields. For example: "parent,resource_name". *

The following fields are supported: *

* resource_name * category * state * parent * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -820,7 +820,7 @@ public final GroupFindingsPagedResponse groupFindings(SourceName parent, String * Filters an organization or source's findings and groups them by their specified properties. * *

To group across all sources provide a `-` as the source id. Example: - * /v1beta1/organizations/123/sources/-/findings + * /v1beta1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -834,12 +834,12 @@ public final GroupFindingsPagedResponse groupFindings(SourceName parent, String * } * * - * @param parent Name of the source to groupBy. Its format is + * @param parent Required. Name of the source to groupBy. Its format is * "organizations/[organization_id]/sources/[source_id]". To groupBy across all sources - * provide a source_id of `-`. For example: organizations/123/sources/- - * @param groupBy Expression that defines what assets fields to use for grouping (including - * `state`). The string value should follow SQL syntax: comma separated list of fields. For - * example: "parent,resource_name". + * provide a source_id of `-`. For example: organizations/{organization_id}/sources/- + * @param groupBy Required. Expression that defines what assets fields to use for grouping + * (including `state`). The string value should follow SQL syntax: comma separated list of + * fields. For example: "parent,resource_name". *

The following fields are supported: *

* resource_name * category * state * parent * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -855,7 +855,7 @@ public final GroupFindingsPagedResponse groupFindings(String parent, String grou * Filters an organization or source's findings and groups them by their specified properties. * *

To group across all sources provide a `-` as the source id. Example: - * /v1beta1/organizations/123/sources/-/findings + * /v1beta1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -885,7 +885,7 @@ public final GroupFindingsPagedResponse groupFindings(GroupFindingsRequest reque * Filters an organization or source's findings and groups them by their specified properties. * *

To group across all sources provide a `-` as the source id. Example: - * /v1beta1/organizations/123/sources/-/findings + * /v1beta1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -915,7 +915,7 @@ public final GroupFindingsPagedResponse groupFindings(GroupFindingsRequest reque * Filters an organization or source's findings and groups them by their specified properties. * *

To group across all sources provide a `-` as the source id. Example: - * /v1beta1/organizations/123/sources/-/findings + * /v1beta1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -1031,7 +1031,7 @@ public final UnaryCallable listAssetsCall * Lists an organization or source's findings. * *

To list across all sources provide a `-` as the source id. Example: - * /v1beta1/organizations/123/sources/-/findings + * /v1beta1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -1059,7 +1059,7 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) * Lists an organization or source's findings. * *

To list across all sources provide a `-` as the source id. Example: - * /v1beta1/organizations/123/sources/-/findings + * /v1beta1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -1087,7 +1087,7 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) * Lists an organization or source's findings. * *

To list across all sources provide a `-` as the source id. Example: - * /v1beta1/organizations/123/sources/-/findings + * /v1beta1/organizations/{organization_id}/sources/-/findings * *

Sample code: * @@ -1131,7 +1131,7 @@ public final UnaryCallable listFindin * } * * - * @param parent Resource name of the parent of sources to list. Its format should be + * @param parent Required. Resource name of the parent of sources to list. Its format should be * "organizations/[organization_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1158,7 +1158,7 @@ public final ListSourcesPagedResponse listSources(OrganizationName parent) { * } * * - * @param parent Resource name of the parent of sources to list. Its format should be + * @param parent Required. Resource name of the parent of sources to list. Its format should be * "organizations/[organization_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1264,7 +1264,7 @@ public final UnaryCallable listSourcesC * } * * - * @param parent Name of the organization to run asset discovery for. Its format is + * @param parent Required. Name of the organization to run asset discovery for. Its format is * "organizations/[organization_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1295,7 +1295,7 @@ public final OperationFuture runAssetDiscoveryAsync(OrganizationNa * } * * - * @param parent Name of the organization to run asset discovery for. Its format is + * @param parent Required. Name of the organization to run asset discovery for. Its format is * "organizations/[organization_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1404,11 +1404,11 @@ public final UnaryCallable runAssetDiscover * } * * - * @param name The relative resource name of the finding. See: + * @param name Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - * "organizations/123/sources/456/finding/789". - * @param state The desired State of the finding. - * @param startTime The time at which the updated state takes effect. + * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + * @param state Required. The desired State of the finding. + * @param startTime Required. The time at which the updated state takes effect. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Finding setFindingState(FindingName name, Finding.State state, Timestamp startTime) { @@ -1437,11 +1437,11 @@ public final Finding setFindingState(FindingName name, Finding.State state, Time * } * * - * @param name The relative resource name of the finding. See: + * @param name Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - * "organizations/123/sources/456/finding/789". - * @param state The desired State of the finding. - * @param startTime The time at which the updated state takes effect. + * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + * @param state Required. The desired State of the finding. + * @param startTime Required. The time at which the updated state takes effect. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Finding setFindingState(String name, Finding.State state, Timestamp startTime) { @@ -1744,8 +1744,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * } * * - * @param finding The finding resource to update or create if it does not already exist. parent, - * security_marks, and update_time will be ignored. + * @param finding Required. The finding resource to update or create if it does not already exist. + * parent, security_marks, and update_time will be ignored. *

In the case of creation, the finding id portion of the name must alphanumeric and less * than or equal to 32 characters and greater than 0 characters in length. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1816,7 +1816,7 @@ public final UnaryCallable updateFindingCallable( * } * * - * @param organizationSettings The organization settings resource to update. + * @param organizationSettings Required. The organization settings resource to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OrganizationSettings updateOrganizationSettings( @@ -1889,7 +1889,7 @@ public final OrganizationSettings updateOrganizationSettings( * } * * - * @param source The source resource to update. + * @param source Required. The source resource to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Source updateSource(Source source) { @@ -1956,7 +1956,7 @@ public final UnaryCallable updateSourceCallable() { * } * * - * @param securityMarks The security marks resource to update. + * @param securityMarks Required. The security marks resource to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SecurityMarks updateSecurityMarks(SecurityMarks securityMarks) { diff --git a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java index 3adc5bc04..1bce729b6 100644 --- a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java +++ b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java @@ -44,6 +44,7 @@ import java.util.Arrays; import java.util.List; import java.util.Objects; +import java.util.UUID; import java.util.concurrent.ExecutionException; import org.junit.After; import org.junit.AfterClass; @@ -63,7 +64,8 @@ public class SecurityCenterClientTest { public static void startStaticServer() { mockSecurityCenter = new MockSecurityCenter(); serviceHelper = - new MockServiceHelper("in-process-1", Arrays.asList(mockSecurityCenter)); + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockSecurityCenter)); serviceHelper.start(); } diff --git a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientTest.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientTest.java index cdf3dd639..18e746a20 100644 --- a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientTest.java +++ b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientTest.java @@ -44,6 +44,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import java.util.UUID; import java.util.concurrent.ExecutionException; import org.junit.After; import org.junit.AfterClass; @@ -63,7 +64,8 @@ public class SecurityCenterClientTest { public static void startStaticServer() { mockSecurityCenter = new MockSecurityCenter(); serviceHelper = - new MockServiceHelper("in-process-1", Arrays.asList(mockSecurityCenter)); + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockSecurityCenter)); serviceHelper.start(); } diff --git a/grpc-google-cloud-securitycenter-v1/pom.xml b/grpc-google-cloud-securitycenter-v1/pom.xml index 3eaa5b827..4a6335fea 100644 --- a/grpc-google-cloud-securitycenter-v1/pom.xml +++ b/grpc-google-cloud-securitycenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.82.0 + 0.83.0 grpc-google-cloud-securitycenter-v1 GRPC library for grpc-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 0.117.0 + 0.118.0 diff --git a/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java b/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java index 35e836c89..fe24831e5 100644 --- a/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java +++ b/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java @@ -1193,7 +1193,7 @@ public void groupAssets( * Filters an organization or source's findings and groups them by their * specified properties. * To group across all sources provide a `-` as the source id. - * Example: /v1/organizations/123/sources/-/findings + * Example: /v1/organizations/{organization_id}/sources/-/findings * */ public void groupFindings( @@ -1223,7 +1223,7 @@ public void listAssets( *

      * Lists an organization or source's findings.
      * To list across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/123/sources/-/findings
+     * Example: /v1/organizations/{organization_id}/sources/-/findings
      * 
*/ public void listFindings( @@ -1613,7 +1613,7 @@ public void groupAssets( * Filters an organization or source's findings and groups them by their * specified properties. * To group across all sources provide a `-` as the source id. - * Example: /v1/organizations/123/sources/-/findings + * Example: /v1/organizations/{organization_id}/sources/-/findings * */ public void groupFindings( @@ -1649,7 +1649,7 @@ public void listAssets( *
      * Lists an organization or source's findings.
      * To list across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/123/sources/-/findings
+     * Example: /v1/organizations/{organization_id}/sources/-/findings
      * 
*/ public void listFindings( @@ -1924,7 +1924,7 @@ public com.google.cloud.securitycenter.v1.GroupAssetsResponse groupAssets( * Filters an organization or source's findings and groups them by their * specified properties. * To group across all sources provide a `-` as the source id. - * Example: /v1/organizations/123/sources/-/findings + * Example: /v1/organizations/{organization_id}/sources/-/findings * */ public com.google.cloud.securitycenter.v1.GroupFindingsResponse groupFindings( @@ -1952,7 +1952,7 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse listAssets( *
      * Lists an organization or source's findings.
      * To list across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/123/sources/-/findings
+     * Example: /v1/organizations/{organization_id}/sources/-/findings
      * 
*/ public com.google.cloud.securitycenter.v1.ListFindingsResponse listFindings( @@ -2200,7 +2200,7 @@ protected SecurityCenterFutureStub build( * Filters an organization or source's findings and groups them by their * specified properties. * To group across all sources provide a `-` as the source id. - * Example: /v1/organizations/123/sources/-/findings + * Example: /v1/organizations/{organization_id}/sources/-/findings * */ public com.google.common.util.concurrent.ListenableFuture< @@ -2230,7 +2230,7 @@ protected SecurityCenterFutureStub build( *
      * Lists an organization or source's findings.
      * To list across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/123/sources/-/findings
+     * Example: /v1/organizations/{organization_id}/sources/-/findings
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/grpc-google-cloud-securitycenter-v1beta1/pom.xml b/grpc-google-cloud-securitycenter-v1beta1/pom.xml index 541089084..2e44ab5f7 100644 --- a/grpc-google-cloud-securitycenter-v1beta1/pom.xml +++ b/grpc-google-cloud-securitycenter-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.82.0 + 0.83.0 grpc-google-cloud-securitycenter-v1beta1 GRPC library for grpc-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 0.117.0 + 0.118.0 diff --git a/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java b/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java index 0098e9a01..5b3000a8b 100644 --- a/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java +++ b/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java @@ -1201,7 +1201,7 @@ public void groupAssets( * Filters an organization or source's findings and groups them by their * specified properties. * To group across all sources provide a `-` as the source id. - * Example: /v1beta1/organizations/123/sources/-/findings + * Example: /v1beta1/organizations/{organization_id}/sources/-/findings * */ public void groupFindings( @@ -1231,7 +1231,7 @@ public void listAssets( *
      * Lists an organization or source's findings.
      * To list across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/123/sources/-/findings
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
      * 
*/ public void listFindings( @@ -1631,7 +1631,7 @@ public void groupAssets( * Filters an organization or source's findings and groups them by their * specified properties. * To group across all sources provide a `-` as the source id. - * Example: /v1beta1/organizations/123/sources/-/findings + * Example: /v1beta1/organizations/{organization_id}/sources/-/findings * */ public void groupFindings( @@ -1667,7 +1667,7 @@ public void listAssets( *
      * Lists an organization or source's findings.
      * To list across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/123/sources/-/findings
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
      * 
*/ public void listFindings( @@ -1945,7 +1945,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse groupAssets( * Filters an organization or source's findings and groups them by their * specified properties. * To group across all sources provide a `-` as the source id. - * Example: /v1beta1/organizations/123/sources/-/findings + * Example: /v1beta1/organizations/{organization_id}/sources/-/findings * */ public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse groupFindings( @@ -1973,7 +1973,7 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse listAssets( *
      * Lists an organization or source's findings.
      * To list across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/123/sources/-/findings
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
      * 
*/ public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse listFindings( @@ -2221,7 +2221,7 @@ protected SecurityCenterFutureStub build( * Filters an organization or source's findings and groups them by their * specified properties. * To group across all sources provide a `-` as the source id. - * Example: /v1beta1/organizations/123/sources/-/findings + * Example: /v1beta1/organizations/{organization_id}/sources/-/findings * */ public com.google.common.util.concurrent.ListenableFuture< @@ -2251,7 +2251,7 @@ protected SecurityCenterFutureStub build( *
      * Lists an organization or source's findings.
      * To list across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/123/sources/-/findings
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/pom.xml b/pom.xml index 8434b4d3d..93b6217d6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycenter-parent pom - 0.117.0 + 0.118.0 Google Cloud Security Command Center Parent https://github.com/googleapis/java-securitycenter @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.2.1 + 0.3.1 @@ -66,10 +66,10 @@ 1.91.1 1.8.1 1.17.0 - 1.50.1 - 1.25.0 - 3.10.0 - 4.12 + 1.52.0 + 1.26.0 + 3.11.1 + 4.13 28.1-android 1.4.0 1.3.2 @@ -82,27 +82,27 @@ com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.82.0 + 0.83.0 com.google.cloud google-cloud-securitycenter - 0.117.0 + 0.118.0 diff --git a/proto-google-cloud-securitycenter-v1/clirr-ignored-differences.xml b/proto-google-cloud-securitycenter-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000..fa69c4d15 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/securitycenter/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/securitycenter/v1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/securitycenter/v1/*OrBuilder + boolean has*(*) + + diff --git a/proto-google-cloud-securitycenter-v1/pom.xml b/proto-google-cloud-securitycenter-v1/pom.xml index 9529bf6e5..ca03d21f0 100644 --- a/proto-google-cloud-securitycenter-v1/pom.xml +++ b/proto-google-cloud-securitycenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.82.0 + 0.83.0 proto-google-cloud-securitycenter-v1 PROTO library for proto-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 0.117.0 + 0.118.0 diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java index fb68322ca..a92d4c823 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java @@ -45,6 +45,12 @@ private Asset() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Asset(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -96,11 +102,11 @@ private Asset( } case 58: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { resourceProperties_ = com.google.protobuf.MapField.newMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry resourceProperties__ = @@ -235,6 +241,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * string resource_name = 1; + * + * @return The resourceName. */ java.lang.String getResourceName(); /** @@ -247,6 +255,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * string resource_name = 1; + * + * @return The bytes for resourceName. */ com.google.protobuf.ByteString getResourceNameBytes(); @@ -261,6 +271,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * string resource_type = 2; + * + * @return The resourceType. */ java.lang.String getResourceType(); /** @@ -274,6 +286,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * string resource_type = 2; + * + * @return The bytes for resourceType. */ com.google.protobuf.ByteString getResourceTypeBytes(); @@ -286,6 +300,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * string resource_parent = 3; + * + * @return The resourceParent. */ java.lang.String getResourceParent(); /** @@ -297,6 +313,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * string resource_parent = 3; + * + * @return The bytes for resourceParent. */ com.google.protobuf.ByteString getResourceParentBytes(); @@ -309,6 +327,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * string resource_project = 4; + * + * @return The resourceProject. */ java.lang.String getResourceProject(); /** @@ -320,6 +340,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * string resource_project = 4; + * + * @return The bytes for resourceProject. */ com.google.protobuf.ByteString getResourceProjectBytes(); @@ -331,6 +353,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * repeated string resource_owners = 5; + * + * @return A list containing the resourceOwners. */ java.util.List getResourceOwnersList(); /** @@ -341,6 +365,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * repeated string resource_owners = 5; + * + * @return The count of resourceOwners. */ int getResourceOwnersCount(); /** @@ -351,6 +377,9 @@ public interface SecurityCenterPropertiesOrBuilder * * * repeated string resource_owners = 5; + * + * @param index The index of the element to return. + * @return The resourceOwners at the given index. */ java.lang.String getResourceOwners(int index); /** @@ -361,8 +390,86 @@ public interface SecurityCenterPropertiesOrBuilder * * * repeated string resource_owners = 5; + * + * @param index The index of the value to return. + * @return The bytes of the resourceOwners at the given index. */ com.google.protobuf.ByteString getResourceOwnersBytes(int index); + + /** + * + * + *
+     * The user defined display name for this resource.
+     * 
+ * + * string resource_display_name = 6; + * + * @return The resourceDisplayName. + */ + java.lang.String getResourceDisplayName(); + /** + * + * + *
+     * The user defined display name for this resource.
+     * 
+ * + * string resource_display_name = 6; + * + * @return The bytes for resourceDisplayName. + */ + com.google.protobuf.ByteString getResourceDisplayNameBytes(); + + /** + * + * + *
+     * The user defined display name for the parent of this resource.
+     * 
+ * + * string resource_parent_display_name = 7; + * + * @return The resourceParentDisplayName. + */ + java.lang.String getResourceParentDisplayName(); + /** + * + * + *
+     * The user defined display name for the parent of this resource.
+     * 
+ * + * string resource_parent_display_name = 7; + * + * @return The bytes for resourceParentDisplayName. + */ + com.google.protobuf.ByteString getResourceParentDisplayNameBytes(); + + /** + * + * + *
+     * The user defined display name for the project of this resource.
+     * 
+ * + * string resource_project_display_name = 8; + * + * @return The resourceProjectDisplayName. + */ + java.lang.String getResourceProjectDisplayName(); + /** + * + * + *
+     * The user defined display name for the project of this resource.
+     * 
+ * + * string resource_project_display_name = 8; + * + * @return The bytes for resourceProjectDisplayName. + */ + com.google.protobuf.ByteString getResourceProjectDisplayNameBytes(); } /** * @@ -390,6 +497,15 @@ private SecurityCenterProperties() { resourceParent_ = ""; resourceProject_ = ""; resourceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; + resourceDisplayName_ = ""; + resourceParentDisplayName_ = ""; + resourceProjectDisplayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SecurityCenterProperties(); } @java.lang.Override @@ -447,13 +563,34 @@ private SecurityCenterProperties( case 42: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { resourceOwners_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000001; } resourceOwners_.add(s); break; } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceDisplayName_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceParentDisplayName_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceProjectDisplayName_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -468,7 +605,7 @@ private SecurityCenterProperties( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000010) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { resourceOwners_ = resourceOwners_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -491,7 +628,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder.class); } - private int bitField0_; public static final int RESOURCE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object resourceName_; /** @@ -504,6 +640,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string resource_name = 1; + * + * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; @@ -526,6 +664,8 @@ public java.lang.String getResourceName() { * * * string resource_name = 1; + * + * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; @@ -552,6 +692,8 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * * string resource_type = 2; + * + * @return The resourceType. */ public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; @@ -575,6 +717,8 @@ public java.lang.String getResourceType() { * * * string resource_type = 2; + * + * @return The bytes for resourceType. */ public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; @@ -599,6 +743,8 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { * * * string resource_parent = 3; + * + * @return The resourceParent. */ public java.lang.String getResourceParent() { java.lang.Object ref = resourceParent_; @@ -620,6 +766,8 @@ public java.lang.String getResourceParent() { * * * string resource_parent = 3; + * + * @return The bytes for resourceParent. */ public com.google.protobuf.ByteString getResourceParentBytes() { java.lang.Object ref = resourceParent_; @@ -644,6 +792,8 @@ public com.google.protobuf.ByteString getResourceParentBytes() { * * * string resource_project = 4; + * + * @return The resourceProject. */ public java.lang.String getResourceProject() { java.lang.Object ref = resourceProject_; @@ -665,6 +815,8 @@ public java.lang.String getResourceProject() { * * * string resource_project = 4; + * + * @return The bytes for resourceProject. */ public com.google.protobuf.ByteString getResourceProjectBytes() { java.lang.Object ref = resourceProject_; @@ -688,6 +840,8 @@ public com.google.protobuf.ByteString getResourceProjectBytes() { * * * repeated string resource_owners = 5; + * + * @return A list containing the resourceOwners. */ public com.google.protobuf.ProtocolStringList getResourceOwnersList() { return resourceOwners_; @@ -700,6 +854,8 @@ public com.google.protobuf.ProtocolStringList getResourceOwnersList() { * * * repeated string resource_owners = 5; + * + * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); @@ -712,6 +868,9 @@ public int getResourceOwnersCount() { * * * repeated string resource_owners = 5; + * + * @param index The index of the element to return. + * @return The resourceOwners at the given index. */ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); @@ -724,11 +883,155 @@ public java.lang.String getResourceOwners(int index) { * * * repeated string resource_owners = 5; + * + * @param index The index of the value to return. + * @return The bytes of the resourceOwners at the given index. */ public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); } + public static final int RESOURCE_DISPLAY_NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object resourceDisplayName_; + /** + * + * + *
+     * The user defined display name for this resource.
+     * 
+ * + * string resource_display_name = 6; + * + * @return The resourceDisplayName. + */ + public java.lang.String getResourceDisplayName() { + java.lang.Object ref = resourceDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceDisplayName_ = s; + return s; + } + } + /** + * + * + *
+     * The user defined display name for this resource.
+     * 
+ * + * string resource_display_name = 6; + * + * @return The bytes for resourceDisplayName. + */ + public com.google.protobuf.ByteString getResourceDisplayNameBytes() { + java.lang.Object ref = resourceDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_PARENT_DISPLAY_NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object resourceParentDisplayName_; + /** + * + * + *
+     * The user defined display name for the parent of this resource.
+     * 
+ * + * string resource_parent_display_name = 7; + * + * @return The resourceParentDisplayName. + */ + public java.lang.String getResourceParentDisplayName() { + java.lang.Object ref = resourceParentDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceParentDisplayName_ = s; + return s; + } + } + /** + * + * + *
+     * The user defined display name for the parent of this resource.
+     * 
+ * + * string resource_parent_display_name = 7; + * + * @return The bytes for resourceParentDisplayName. + */ + public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { + java.lang.Object ref = resourceParentDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceParentDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_PROJECT_DISPLAY_NAME_FIELD_NUMBER = 8; + private volatile java.lang.Object resourceProjectDisplayName_; + /** + * + * + *
+     * The user defined display name for the project of this resource.
+     * 
+ * + * string resource_project_display_name = 8; + * + * @return The resourceProjectDisplayName. + */ + public java.lang.String getResourceProjectDisplayName() { + java.lang.Object ref = resourceProjectDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceProjectDisplayName_ = s; + return s; + } + } + /** + * + * + *
+     * The user defined display name for the project of this resource.
+     * 
+ * + * string resource_project_display_name = 8; + * + * @return The bytes for resourceProjectDisplayName. + */ + public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { + java.lang.Object ref = resourceProjectDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceProjectDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -758,6 +1061,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < resourceOwners_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, resourceOwners_.getRaw(i)); } + if (!getResourceDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resourceDisplayName_); + } + if (!getResourceParentDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, resourceParentDisplayName_); + } + if (!getResourceProjectDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, resourceProjectDisplayName_); + } unknownFields.writeTo(output); } @@ -787,6 +1099,18 @@ public int getSerializedSize() { size += dataSize; size += 1 * getResourceOwnersList().size(); } + if (!getResourceDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resourceDisplayName_); + } + if (!getResourceParentDisplayNameBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(7, resourceParentDisplayName_); + } + if (!getResourceProjectDisplayNameBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 8, resourceProjectDisplayName_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -808,6 +1132,11 @@ public boolean equals(final java.lang.Object obj) { if (!getResourceParent().equals(other.getResourceParent())) return false; if (!getResourceProject().equals(other.getResourceProject())) return false; if (!getResourceOwnersList().equals(other.getResourceOwnersList())) return false; + if (!getResourceDisplayName().equals(other.getResourceDisplayName())) return false; + if (!getResourceParentDisplayName().equals(other.getResourceParentDisplayName())) + return false; + if (!getResourceProjectDisplayName().equals(other.getResourceProjectDisplayName())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -831,6 +1160,12 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_OWNERS_FIELD_NUMBER; hash = (53 * hash) + getResourceOwnersList().hashCode(); } + hash = (37 * hash) + RESOURCE_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceDisplayName().hashCode(); + hash = (37 * hash) + RESOURCE_PARENT_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceParentDisplayName().hashCode(); + hash = (37 * hash) + RESOURCE_PROJECT_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceProjectDisplayName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -991,7 +1326,13 @@ public Builder clear() { resourceProject_ = ""; resourceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); + resourceDisplayName_ = ""; + + resourceParentDisplayName_ = ""; + + resourceProjectDisplayName_ = ""; + return this; } @@ -1022,17 +1363,18 @@ public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties buildPa com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties result = new com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.resourceName_ = resourceName_; result.resourceType_ = resourceType_; result.resourceParent_ = resourceParent_; result.resourceProject_ = resourceProject_; - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { resourceOwners_ = resourceOwners_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); } result.resourceOwners_ = resourceOwners_; - result.bitField0_ = to_bitField0_; + result.resourceDisplayName_ = resourceDisplayName_; + result.resourceParentDisplayName_ = resourceParentDisplayName_; + result.resourceProjectDisplayName_ = resourceProjectDisplayName_; onBuilt(); return result; } @@ -1107,13 +1449,25 @@ public Builder mergeFrom( if (!other.resourceOwners_.isEmpty()) { if (resourceOwners_.isEmpty()) { resourceOwners_ = other.resourceOwners_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourceOwnersIsMutable(); resourceOwners_.addAll(other.resourceOwners_); } onChanged(); } + if (!other.getResourceDisplayName().isEmpty()) { + resourceDisplayName_ = other.resourceDisplayName_; + onChanged(); + } + if (!other.getResourceParentDisplayName().isEmpty()) { + resourceParentDisplayName_ = other.resourceParentDisplayName_; + onChanged(); + } + if (!other.getResourceProjectDisplayName().isEmpty()) { + resourceProjectDisplayName_ = other.resourceProjectDisplayName_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1158,6 +1512,8 @@ public Builder mergeFrom( * * * string resource_name = 1; + * + * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; @@ -1180,6 +1536,8 @@ public java.lang.String getResourceName() { * * * string resource_name = 1; + * + * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; @@ -1202,6 +1560,9 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * * string resource_name = 1; + * + * @param value The resourceName to set. + * @return This builder for chaining. */ public Builder setResourceName(java.lang.String value) { if (value == null) { @@ -1222,6 +1583,8 @@ public Builder setResourceName(java.lang.String value) { * * * string resource_name = 1; + * + * @return This builder for chaining. */ public Builder clearResourceName() { @@ -1239,6 +1602,9 @@ public Builder clearResourceName() { * * * string resource_name = 1; + * + * @param value The bytes for resourceName to set. + * @return This builder for chaining. */ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1263,6 +1629,8 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { * * * string resource_type = 2; + * + * @return The resourceType. */ public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; @@ -1286,6 +1654,8 @@ public java.lang.String getResourceType() { * * * string resource_type = 2; + * + * @return The bytes for resourceType. */ public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; @@ -1309,6 +1679,9 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { * * * string resource_type = 2; + * + * @param value The resourceType to set. + * @return This builder for chaining. */ public Builder setResourceType(java.lang.String value) { if (value == null) { @@ -1330,6 +1703,8 @@ public Builder setResourceType(java.lang.String value) { * * * string resource_type = 2; + * + * @return This builder for chaining. */ public Builder clearResourceType() { @@ -1348,6 +1723,9 @@ public Builder clearResourceType() { * * * string resource_type = 2; + * + * @param value The bytes for resourceType to set. + * @return This builder for chaining. */ public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1370,6 +1748,8 @@ public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { * * * string resource_parent = 3; + * + * @return The resourceParent. */ public java.lang.String getResourceParent() { java.lang.Object ref = resourceParent_; @@ -1391,6 +1771,8 @@ public java.lang.String getResourceParent() { * * * string resource_parent = 3; + * + * @return The bytes for resourceParent. */ public com.google.protobuf.ByteString getResourceParentBytes() { java.lang.Object ref = resourceParent_; @@ -1412,6 +1794,9 @@ public com.google.protobuf.ByteString getResourceParentBytes() { * * * string resource_parent = 3; + * + * @param value The resourceParent to set. + * @return This builder for chaining. */ public Builder setResourceParent(java.lang.String value) { if (value == null) { @@ -1431,6 +1816,8 @@ public Builder setResourceParent(java.lang.String value) { * * * string resource_parent = 3; + * + * @return This builder for chaining. */ public Builder clearResourceParent() { @@ -1447,6 +1834,9 @@ public Builder clearResourceParent() { * * * string resource_parent = 3; + * + * @param value The bytes for resourceParent to set. + * @return This builder for chaining. */ public Builder setResourceParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1469,6 +1859,8 @@ public Builder setResourceParentBytes(com.google.protobuf.ByteString value) { * * * string resource_project = 4; + * + * @return The resourceProject. */ public java.lang.String getResourceProject() { java.lang.Object ref = resourceProject_; @@ -1490,6 +1882,8 @@ public java.lang.String getResourceProject() { * * * string resource_project = 4; + * + * @return The bytes for resourceProject. */ public com.google.protobuf.ByteString getResourceProjectBytes() { java.lang.Object ref = resourceProject_; @@ -1511,6 +1905,9 @@ public com.google.protobuf.ByteString getResourceProjectBytes() { * * * string resource_project = 4; + * + * @param value The resourceProject to set. + * @return This builder for chaining. */ public Builder setResourceProject(java.lang.String value) { if (value == null) { @@ -1530,6 +1927,8 @@ public Builder setResourceProject(java.lang.String value) { * * * string resource_project = 4; + * + * @return This builder for chaining. */ public Builder clearResourceProject() { @@ -1546,6 +1945,9 @@ public Builder clearResourceProject() { * * * string resource_project = 4; + * + * @param value The bytes for resourceProject to set. + * @return This builder for chaining. */ public Builder setResourceProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1562,9 +1964,9 @@ public Builder setResourceProjectBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourceOwnersIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { resourceOwners_ = new com.google.protobuf.LazyStringArrayList(resourceOwners_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000001; } } /** @@ -1575,6 +1977,8 @@ private void ensureResourceOwnersIsMutable() { * * * repeated string resource_owners = 5; + * + * @return A list containing the resourceOwners. */ public com.google.protobuf.ProtocolStringList getResourceOwnersList() { return resourceOwners_.getUnmodifiableView(); @@ -1587,6 +1991,8 @@ public com.google.protobuf.ProtocolStringList getResourceOwnersList() { * * * repeated string resource_owners = 5; + * + * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); @@ -1599,6 +2005,9 @@ public int getResourceOwnersCount() { * * * repeated string resource_owners = 5; + * + * @param index The index of the element to return. + * @return The resourceOwners at the given index. */ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); @@ -1611,6 +2020,9 @@ public java.lang.String getResourceOwners(int index) { * * * repeated string resource_owners = 5; + * + * @param index The index of the value to return. + * @return The bytes of the resourceOwners at the given index. */ public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); @@ -1623,6 +2035,10 @@ public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { * * * repeated string resource_owners = 5; + * + * @param index The index to set the value at. + * @param value The resourceOwners to set. + * @return This builder for chaining. */ public Builder setResourceOwners(int index, java.lang.String value) { if (value == null) { @@ -1641,6 +2057,9 @@ public Builder setResourceOwners(int index, java.lang.String value) { * * * repeated string resource_owners = 5; + * + * @param value The resourceOwners to add. + * @return This builder for chaining. */ public Builder addResourceOwners(java.lang.String value) { if (value == null) { @@ -1659,6 +2078,9 @@ public Builder addResourceOwners(java.lang.String value) { * * * repeated string resource_owners = 5; + * + * @param values The resourceOwners to add. + * @return This builder for chaining. */ public Builder addAllResourceOwners(java.lang.Iterable values) { ensureResourceOwnersIsMutable(); @@ -1674,10 +2096,12 @@ public Builder addAllResourceOwners(java.lang.Iterable values) * * * repeated string resource_owners = 5; + * + * @return This builder for chaining. */ public Builder clearResourceOwners() { resourceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1689,6 +2113,9 @@ public Builder clearResourceOwners() { * * * repeated string resource_owners = 5; + * + * @param value The bytes of the resourceOwners to add. + * @return This builder for chaining. */ public Builder addResourceOwnersBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1701,6 +2128,324 @@ public Builder addResourceOwnersBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object resourceDisplayName_ = ""; + /** + * + * + *
+       * The user defined display name for this resource.
+       * 
+ * + * string resource_display_name = 6; + * + * @return The resourceDisplayName. + */ + public java.lang.String getResourceDisplayName() { + java.lang.Object ref = resourceDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The user defined display name for this resource.
+       * 
+ * + * string resource_display_name = 6; + * + * @return The bytes for resourceDisplayName. + */ + public com.google.protobuf.ByteString getResourceDisplayNameBytes() { + java.lang.Object ref = resourceDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The user defined display name for this resource.
+       * 
+ * + * string resource_display_name = 6; + * + * @param value The resourceDisplayName to set. + * @return This builder for chaining. + */ + public Builder setResourceDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The user defined display name for this resource.
+       * 
+ * + * string resource_display_name = 6; + * + * @return This builder for chaining. + */ + public Builder clearResourceDisplayName() { + + resourceDisplayName_ = getDefaultInstance().getResourceDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+       * The user defined display name for this resource.
+       * 
+ * + * string resource_display_name = 6; + * + * @param value The bytes for resourceDisplayName to set. + * @return This builder for chaining. + */ + public Builder setResourceDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceDisplayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object resourceParentDisplayName_ = ""; + /** + * + * + *
+       * The user defined display name for the parent of this resource.
+       * 
+ * + * string resource_parent_display_name = 7; + * + * @return The resourceParentDisplayName. + */ + public java.lang.String getResourceParentDisplayName() { + java.lang.Object ref = resourceParentDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceParentDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The user defined display name for the parent of this resource.
+       * 
+ * + * string resource_parent_display_name = 7; + * + * @return The bytes for resourceParentDisplayName. + */ + public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { + java.lang.Object ref = resourceParentDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceParentDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The user defined display name for the parent of this resource.
+       * 
+ * + * string resource_parent_display_name = 7; + * + * @param value The resourceParentDisplayName to set. + * @return This builder for chaining. + */ + public Builder setResourceParentDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceParentDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The user defined display name for the parent of this resource.
+       * 
+ * + * string resource_parent_display_name = 7; + * + * @return This builder for chaining. + */ + public Builder clearResourceParentDisplayName() { + + resourceParentDisplayName_ = getDefaultInstance().getResourceParentDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+       * The user defined display name for the parent of this resource.
+       * 
+ * + * string resource_parent_display_name = 7; + * + * @param value The bytes for resourceParentDisplayName to set. + * @return This builder for chaining. + */ + public Builder setResourceParentDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceParentDisplayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object resourceProjectDisplayName_ = ""; + /** + * + * + *
+       * The user defined display name for the project of this resource.
+       * 
+ * + * string resource_project_display_name = 8; + * + * @return The resourceProjectDisplayName. + */ + public java.lang.String getResourceProjectDisplayName() { + java.lang.Object ref = resourceProjectDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceProjectDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The user defined display name for the project of this resource.
+       * 
+ * + * string resource_project_display_name = 8; + * + * @return The bytes for resourceProjectDisplayName. + */ + public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { + java.lang.Object ref = resourceProjectDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceProjectDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The user defined display name for the project of this resource.
+       * 
+ * + * string resource_project_display_name = 8; + * + * @param value The resourceProjectDisplayName to set. + * @return This builder for chaining. + */ + public Builder setResourceProjectDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceProjectDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The user defined display name for the project of this resource.
+       * 
+ * + * string resource_project_display_name = 8; + * + * @return This builder for chaining. + */ + public Builder clearResourceProjectDisplayName() { + + resourceProjectDisplayName_ = getDefaultInstance().getResourceProjectDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+       * The user defined display name for the project of this resource.
+       * 
+ * + * string resource_project_display_name = 8; + * + * @param value The bytes for resourceProjectDisplayName to set. + * @return This builder for chaining. + */ + public Builder setResourceProjectDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceProjectDisplayName_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1771,6 +2516,8 @@ public interface IamPolicyOrBuilder * * * string policy_blob = 1; + * + * @return The policyBlob. */ java.lang.String getPolicyBlob(); /** @@ -1783,6 +2530,8 @@ public interface IamPolicyOrBuilder * * * string policy_blob = 1; + * + * @return The bytes for policyBlob. */ com.google.protobuf.ByteString getPolicyBlobBytes(); } @@ -1811,6 +2560,12 @@ private IamPolicy() { policyBlob_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IamPolicy(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -1824,7 +2579,6 @@ private IamPolicy( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -1888,6 +2642,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string policy_blob = 1; + * + * @return The policyBlob. */ public java.lang.String getPolicyBlob() { java.lang.Object ref = policyBlob_; @@ -1910,6 +2666,8 @@ public java.lang.String getPolicyBlob() { * * * string policy_blob = 1; + * + * @return The bytes for policyBlob. */ public com.google.protobuf.ByteString getPolicyBlobBytes() { java.lang.Object ref = policyBlob_; @@ -2258,6 +3016,8 @@ public Builder mergeFrom( * * * string policy_blob = 1; + * + * @return The policyBlob. */ public java.lang.String getPolicyBlob() { java.lang.Object ref = policyBlob_; @@ -2280,6 +3040,8 @@ public java.lang.String getPolicyBlob() { * * * string policy_blob = 1; + * + * @return The bytes for policyBlob. */ public com.google.protobuf.ByteString getPolicyBlobBytes() { java.lang.Object ref = policyBlob_; @@ -2302,6 +3064,9 @@ public com.google.protobuf.ByteString getPolicyBlobBytes() { * * * string policy_blob = 1; + * + * @param value The policyBlob to set. + * @return This builder for chaining. */ public Builder setPolicyBlob(java.lang.String value) { if (value == null) { @@ -2322,6 +3087,8 @@ public Builder setPolicyBlob(java.lang.String value) { * * * string policy_blob = 1; + * + * @return This builder for chaining. */ public Builder clearPolicyBlob() { @@ -2339,6 +3106,9 @@ public Builder clearPolicyBlob() { * * * string policy_blob = 1; + * + * @param value The bytes for policyBlob to set. + * @return This builder for chaining. */ public Builder setPolicyBlobBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2403,7 +3173,6 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy getDefaultInstanceForT } } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -2413,10 +3182,12 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy getDefaultInstanceForT * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -2436,10 +3207,12 @@ public java.lang.String getName() { * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -2467,6 +3240,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; * + * + * @return Whether the securityCenterProperties field is set. */ public boolean hasSecurityCenterProperties() { return securityCenterProperties_ != null; @@ -2482,6 +3257,8 @@ public boolean hasSecurityCenterProperties() { * * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; * + * + * @return The securityCenterProperties. */ public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getSecurityCenterProperties() { @@ -2622,6 +3399,8 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String k * * * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarks_ != null; @@ -2635,6 +3414,8 @@ public boolean hasSecurityMarks() { * * * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * @return The securityMarks. */ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { return securityMarks_ == null @@ -2665,6 +3446,8 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark * * * .google.protobuf.Timestamp create_time = 9; + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTime_ != null; @@ -2677,6 +3460,8 @@ public boolean hasCreateTime() { * * * .google.protobuf.Timestamp create_time = 9; + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; @@ -2705,6 +3490,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * * .google.protobuf.Timestamp update_time = 10; + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTime_ != null; @@ -2718,6 +3505,8 @@ public boolean hasUpdateTime() { * * * .google.protobuf.Timestamp update_time = 10; + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; @@ -2748,6 +3537,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + * + * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicy_ != null; @@ -2762,6 +3553,8 @@ public boolean hasIamPolicy() { * * * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + * + * @return The iamPolicy. */ public com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy() { return iamPolicy_ == null @@ -3165,7 +3958,6 @@ public com.google.cloud.securitycenter.v1.Asset buildPartial() { com.google.cloud.securitycenter.v1.Asset result = new com.google.cloud.securitycenter.v1.Asset(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; if (securityCenterPropertiesBuilder_ == null) { result.securityCenterProperties_ = securityCenterProperties_; @@ -3194,7 +3986,6 @@ public com.google.cloud.securitycenter.v1.Asset buildPartial() { } else { result.iamPolicy_ = iamPolicyBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -3303,10 +4094,12 @@ public Builder mergeFrom( * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -3326,10 +4119,12 @@ public java.lang.String getName() { * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -3349,10 +4144,13 @@ public com.google.protobuf.ByteString getNameBytes() { * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -3370,10 +4168,12 @@ public Builder setName(java.lang.String value) { * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -3388,10 +4188,13 @@ public Builder clearName() { * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -3422,6 +4225,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; * + * + * @return Whether the securityCenterProperties field is set. */ public boolean hasSecurityCenterProperties() { return securityCenterPropertiesBuilder_ != null || securityCenterProperties_ != null; @@ -3437,6 +4242,8 @@ public boolean hasSecurityCenterProperties() { * * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; * + * + * @return The securityCenterProperties. */ public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getSecurityCenterProperties() { @@ -3803,6 +4610,8 @@ public Builder putAllResourceProperties( * * * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; @@ -3816,6 +4625,8 @@ public boolean hasSecurityMarks() { * * * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * @return The securityMarks. */ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -3993,6 +4804,8 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark * * * .google.protobuf.Timestamp create_time = 9; + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; @@ -4005,6 +4818,8 @@ public boolean hasCreateTime() { * * * .google.protobuf.Timestamp create_time = 9; + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { @@ -4173,6 +4988,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * * .google.protobuf.Timestamp update_time = 10; + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; @@ -4186,6 +5003,8 @@ public boolean hasUpdateTime() { * * * .google.protobuf.Timestamp update_time = 10; + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { @@ -4362,6 +5181,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + * + * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; @@ -4376,6 +5197,8 @@ public boolean hasIamPolicy() { * * * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + * + * @return The iamPolicy. */ public com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy() { if (iamPolicyBuilder_ == null) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java index c2e9231f3..1c74470f1 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class AssetName implements ResourceName { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java index 4ab026b20..3cf6ea575 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java @@ -30,10 +30,12 @@ public interface AssetOrBuilder * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -43,10 +45,12 @@ public interface AssetOrBuilder * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -61,6 +65,8 @@ public interface AssetOrBuilder * * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; * + * + * @return Whether the securityCenterProperties field is set. */ boolean hasSecurityCenterProperties(); /** @@ -74,6 +80,8 @@ public interface AssetOrBuilder * * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; * + * + * @return The securityCenterProperties. */ com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getSecurityCenterProperties(); /** @@ -160,6 +168,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** @@ -171,6 +181,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * @return The securityMarks. */ com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks(); /** @@ -193,6 +205,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * * .google.protobuf.Timestamp create_time = 9; + * + * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** @@ -203,6 +217,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * * .google.protobuf.Timestamp create_time = 9; + * + * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** @@ -225,6 +241,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * * .google.protobuf.Timestamp update_time = 10; + * + * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** @@ -236,6 +254,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * * .google.protobuf.Timestamp update_time = 10; + * + * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** @@ -260,6 +280,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + * + * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** @@ -272,6 +294,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + * + * @return The iamPolicy. */ com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy(); /** diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java index 2adacd706..38d922a99 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java @@ -53,53 +53,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n*google/cloud/securitycenter/v1/asset.p" - + "roto\022\036google.cloud.securitycenter.v1\032\034go" - + "ogle/api/annotations.proto\0323google/cloud" - + "/securitycenter/v1/security_marks.proto\032" - + "\034google/protobuf/struct.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\317\005\n\005Asset\022\014\n\004name" - + "\030\001 \001(\t\022b\n\032security_center_properties\030\002 \001" - + "(\0132>.google.cloud.securitycenter.v1.Asse" - + "t.SecurityCenterProperties\022Z\n\023resource_p" - + "roperties\030\007 \003(\0132=.google.cloud.securityc" - + "enter.v1.Asset.ResourcePropertiesEntry\022E" - + "\n\016security_marks\030\010 \001(\0132-.google.cloud.se" - + "curitycenter.v1.SecurityMarks\022/\n\013create_" - + "time\030\t \001(\0132\032.google.protobuf.Timestamp\022/" - + "\n\013update_time\030\n \001(\0132\032.google.protobuf.Ti" - + "mestamp\022C\n\niam_policy\030\013 \001(\0132/.google.clo" - + "ud.securitycenter.v1.Asset.IamPolicy\032\224\001\n" - + "\030SecurityCenterProperties\022\025\n\rresource_na" - + "me\030\001 \001(\t\022\025\n\rresource_type\030\002 \001(\t\022\027\n\017resou" - + "rce_parent\030\003 \001(\t\022\030\n\020resource_project\030\004 \001" - + "(\t\022\027\n\017resource_owners\030\005 \003(\t\032 \n\tIamPolicy" - + "\022\023\n\013policy_blob\030\001 \001(\t\032Q\n\027ResourcePropert" - + "iesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.g" - + "oogle.protobuf.Value:\0028\001B\332\001\n\"com.google." - + "cloud.securitycenter.v1P\001ZLgoogle.golang" - + ".org/genproto/googleapis/cloud/securityc" - + "enter/v1;securitycenter\252\002\036Google.Cloud.S" - + "ecurityCenter.V1\312\002\036Google\\Cloud\\Security" - + "Center\\V1\352\002!Google::Cloud::SecurityCente" - + "r::V1b\006proto3" + + "roto\022\036google.cloud.securitycenter.v1\032\031go" + + "ogle/api/resource.proto\0323google/cloud/se" + + "curitycenter/v1/security_marks.proto\032\034go" + + "ogle/protobuf/struct.proto\032\037google/proto" + + "buf/timestamp.proto\032\034google/api/annotati" + + "ons.proto\"\222\007\n\005Asset\022\014\n\004name\030\001 \001(\t\022b\n\032sec" + + "urity_center_properties\030\002 \001(\0132>.google.c" + + "loud.securitycenter.v1.Asset.SecurityCen" + + "terProperties\022Z\n\023resource_properties\030\007 \003" + + "(\0132=.google.cloud.securitycenter.v1.Asse" + + "t.ResourcePropertiesEntry\022E\n\016security_ma" + + "rks\030\010 \001(\0132-.google.cloud.securitycenter." + + "v1.SecurityMarks\022/\n\013create_time\030\t \001(\0132\032." + + "google.protobuf.Timestamp\022/\n\013update_time" + + "\030\n \001(\0132\032.google.protobuf.Timestamp\022C\n\nia" + + "m_policy\030\013 \001(\0132/.google.cloud.securityce" + + "nter.v1.Asset.IamPolicy\032\200\002\n\030SecurityCent" + + "erProperties\022\025\n\rresource_name\030\001 \001(\t\022\025\n\rr" + + "esource_type\030\002 \001(\t\022\027\n\017resource_parent\030\003 " + + "\001(\t\022\030\n\020resource_project\030\004 \001(\t\022\027\n\017resourc" + + "e_owners\030\005 \003(\t\022\035\n\025resource_display_name\030" + + "\006 \001(\t\022$\n\034resource_parent_display_name\030\007 " + + "\001(\t\022%\n\035resource_project_display_name\030\010 \001" + + "(\t\032 \n\tIamPolicy\022\023\n\013policy_blob\030\001 \001(\t\032Q\n\027" + + "ResourcePropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005" + + "value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001:" + + "U\352AR\n#securitycenter.googleapis.com/Asse" + + "t\022+organizations/{organization}/assets/{" + + "asset}B\332\001\n\"com.google.cloud.securitycent" + + "er.v1P\001ZLgoogle.golang.org/genproto/goog" + + "leapis/cloud/securitycenter/v1;securityc" + + "enter\252\002\036Google.Cloud.SecurityCenter.V1\312\002" + + "\036Google\\Cloud\\SecurityCenter\\V1\352\002!Google" + + "::Cloud::SecurityCenter::V1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_securitycenter_v1_Asset_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable = @@ -120,7 +118,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor, new java.lang.String[] { - "ResourceName", "ResourceType", "ResourceParent", "ResourceProject", "ResourceOwners", + "ResourceName", + "ResourceType", + "ResourceParent", + "ResourceProject", + "ResourceOwners", + "ResourceDisplayName", + "ResourceParentDisplayName", + "ResourceProjectDisplayName", }); internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor = internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(1); @@ -138,10 +143,16 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Key", "Value", }); - com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetSecurityMarksName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetSecurityMarksName.java index 87cc3379f..9d2593c01 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetSecurityMarksName.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetSecurityMarksName.java @@ -23,8 +23,13 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * AUTO-GENERATED DOCUMENTATION AND CLASS + * + * @deprecated This resource name class will be removed in the next major version. + */ @javax.annotation.Generated("by GAPIC protoc plugin") +@Deprecated public class AssetSecurityMarksName extends SecuritymarksName { private static final PathTemplate PATH_TEMPLATE = diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java index e2570ce9f..714f7f62a 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java @@ -42,6 +42,12 @@ private CreateFindingRequest() { findingId_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateFindingRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private CreateFindingRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -136,11 +141,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name of the new finding's parent. Its format should be
+   * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -157,11 +166,15 @@ public java.lang.String getParent() { * * *
-   * Resource name of the new finding's parent. Its format should be
+   * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -181,12 +194,14 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Unique identifier provided by the client within the parent scope.
+   * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
    * greater than 0 characters in length.
    * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The findingId. */ public java.lang.String getFindingId() { java.lang.Object ref = findingId_; @@ -203,12 +218,14 @@ public java.lang.String getFindingId() { * * *
-   * Unique identifier provided by the client within the parent scope.
+   * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
    * greater than 0 characters in length.
    * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for findingId. */ public com.google.protobuf.ByteString getFindingIdBytes() { java.lang.Object ref = findingId_; @@ -228,11 +245,15 @@ public com.google.protobuf.ByteString getFindingIdBytes() { * * *
-   * The Finding being created. The name and security_marks will be ignored as
+   * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the finding field is set. */ public boolean hasFinding() { return finding_ != null; @@ -241,11 +262,15 @@ public boolean hasFinding() { * * *
-   * The Finding being created. The name and security_marks will be ignored as
+   * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The finding. */ public com.google.cloud.securitycenter.v1.Finding getFinding() { return finding_ == null @@ -256,11 +281,13 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() { * * *
-   * The Finding being created. The name and security_marks will be ignored as
+   * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { return getFinding(); @@ -634,11 +661,15 @@ public Builder mergeFrom( * * *
-     * Resource name of the new finding's parent. Its format should be
+     * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -655,11 +686,15 @@ public java.lang.String getParent() { * * *
-     * Resource name of the new finding's parent. Its format should be
+     * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -676,11 +711,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Resource name of the new finding's parent. Its format should be
+     * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -695,11 +735,15 @@ public Builder setParent(java.lang.String value) { * * *
-     * Resource name of the new finding's parent. Its format should be
+     * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -711,11 +755,16 @@ public Builder clearParent() { * * *
-     * Resource name of the new finding's parent. Its format should be
+     * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -733,12 +782,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Unique identifier provided by the client within the parent scope.
+     * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
      * greater than 0 characters in length.
      * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The findingId. */ public java.lang.String getFindingId() { java.lang.Object ref = findingId_; @@ -755,12 +806,14 @@ public java.lang.String getFindingId() { * * *
-     * Unique identifier provided by the client within the parent scope.
+     * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
      * greater than 0 characters in length.
      * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for findingId. */ public com.google.protobuf.ByteString getFindingIdBytes() { java.lang.Object ref = findingId_; @@ -777,12 +830,15 @@ public com.google.protobuf.ByteString getFindingIdBytes() { * * *
-     * Unique identifier provided by the client within the parent scope.
+     * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
      * greater than 0 characters in length.
      * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The findingId to set. + * @return This builder for chaining. */ public Builder setFindingId(java.lang.String value) { if (value == null) { @@ -797,12 +853,14 @@ public Builder setFindingId(java.lang.String value) { * * *
-     * Unique identifier provided by the client within the parent scope.
+     * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
      * greater than 0 characters in length.
      * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearFindingId() { @@ -814,12 +872,15 @@ public Builder clearFindingId() { * * *
-     * Unique identifier provided by the client within the parent scope.
+     * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
      * greater than 0 characters in length.
      * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for findingId to set. + * @return This builder for chaining. */ public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -842,11 +903,15 @@ public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; @@ -855,11 +920,15 @@ public boolean hasFinding() { * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The finding. */ public com.google.cloud.securitycenter.v1.Finding getFinding() { if (findingBuilder_ == null) { @@ -874,11 +943,13 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() { * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { @@ -897,11 +968,13 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) { if (findingBuilder_ == null) { @@ -917,11 +990,13 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder bui * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { @@ -944,11 +1019,13 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -965,11 +1042,13 @@ public Builder clearFinding() { * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() { @@ -980,11 +1059,13 @@ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() { * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { @@ -999,11 +1080,13 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Finding, diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java index ef5784231..8a95a43f1 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface CreateFindingRequestOrBuilder * * *
-   * Resource name of the new finding's parent. Its format should be
+   * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Resource name of the new finding's parent. Its format should be
+   * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -50,24 +58,28 @@ public interface CreateFindingRequestOrBuilder * * *
-   * Unique identifier provided by the client within the parent scope.
+   * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
    * greater than 0 characters in length.
    * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The findingId. */ java.lang.String getFindingId(); /** * * *
-   * Unique identifier provided by the client within the parent scope.
+   * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
    * greater than 0 characters in length.
    * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for findingId. */ com.google.protobuf.ByteString getFindingIdBytes(); @@ -75,33 +87,43 @@ public interface CreateFindingRequestOrBuilder * * *
-   * The Finding being created. The name and security_marks will be ignored as
+   * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the finding field is set. */ boolean hasFinding(); /** * * *
-   * The Finding being created. The name and security_marks will be ignored as
+   * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The finding. */ com.google.cloud.securitycenter.v1.Finding getFinding(); /** * * *
-   * The Finding being created. The name and security_marks will be ignored as
+   * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java index e58005643..a5a56cd60 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java @@ -41,6 +41,12 @@ private CreateSourceRequest() { parent_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSourceRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private CreateSourceRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -128,11 +133,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name of the new source's parent. Its format should be
+   * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -149,11 +158,15 @@ public java.lang.String getParent() { * * *
-   * Resource name of the new source's parent. Its format should be
+   * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -173,11 +186,15 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The Source being created, only the display_name and description will be
+   * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 2; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. */ public boolean hasSource() { return source_ != null; @@ -186,11 +203,15 @@ public boolean hasSource() { * * *
-   * The Source being created, only the display_name and description will be
+   * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 2; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. */ public com.google.cloud.securitycenter.v1.Source getSource() { return source_ == null @@ -201,11 +222,13 @@ public com.google.cloud.securitycenter.v1.Source getSource() { * * *
-   * The Source being created, only the display_name and description will be
+   * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 2; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { return getSource(); @@ -563,11 +586,15 @@ public Builder mergeFrom( * * *
-     * Resource name of the new source's parent. Its format should be
+     * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -584,11 +611,15 @@ public java.lang.String getParent() { * * *
-     * Resource name of the new source's parent. Its format should be
+     * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -605,11 +636,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Resource name of the new source's parent. Its format should be
+     * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -624,11 +660,15 @@ public Builder setParent(java.lang.String value) { * * *
-     * Resource name of the new source's parent. Its format should be
+     * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -640,11 +680,16 @@ public Builder clearParent() { * * *
-     * Resource name of the new source's parent. Its format should be
+     * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -667,11 +712,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; @@ -680,11 +729,15 @@ public boolean hasSource() { * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. */ public com.google.cloud.securitycenter.v1.Source getSource() { if (sourceBuilder_ == null) { @@ -699,11 +752,13 @@ public com.google.cloud.securitycenter.v1.Source getSource() { * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource(com.google.cloud.securitycenter.v1.Source value) { if (sourceBuilder_ == null) { @@ -722,11 +777,13 @@ public Builder setSource(com.google.cloud.securitycenter.v1.Source value) { * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource(com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { if (sourceBuilder_ == null) { @@ -742,11 +799,13 @@ public Builder setSource(com.google.cloud.securitycenter.v1.Source.Builder build * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSource(com.google.cloud.securitycenter.v1.Source value) { if (sourceBuilder_ == null) { @@ -769,11 +828,13 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1.Source value) { * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -790,11 +851,13 @@ public Builder clearSource() { * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.Source.Builder getSourceBuilder() { @@ -805,11 +868,13 @@ public com.google.cloud.securitycenter.v1.Source.Builder getSourceBuilder() { * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { @@ -824,11 +889,13 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Source, diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java index 5c56d734c..a57d30c49 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface CreateSourceRequestOrBuilder * * *
-   * Resource name of the new source's parent. Its format should be
+   * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Resource name of the new source's parent. Its format should be
+   * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -50,33 +58,43 @@ public interface CreateSourceRequestOrBuilder * * *
-   * The Source being created, only the display_name and description will be
+   * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 2; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. */ boolean hasSource(); /** * * *
-   * The Source being created, only the display_name and description will be
+   * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 2; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. */ com.google.cloud.securitycenter.v1.Source getSource(); /** * * *
-   * The Source being created, only the display_name and description will be
+   * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 2; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java index bec60b796..df422cfc4 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java @@ -23,10 +23,11 @@ * *
  * Cloud Security Command Center (Cloud SCC) finding.
- * A finding is a record of assessment data (security, risk, health or privacy)
- * ingested into Cloud SCC for presentation, notification, analysis,
- * policy testing, and enforcement. For example, an XSS vulnerability in an
- * App Engine application is a finding.
+ * A finding is a record of assessment data like security, risk, health, or
+ * privacy, that is ingested into Cloud SCC for presentation, notification,
+ * analysis, policy testing, and enforcement. For example, a
+ * cross-site scripting (XSS) vulnerability in an App Engine application is a
+ * finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Finding} @@ -50,6 +51,12 @@ private Finding() { externalUri_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Finding(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -118,11 +125,11 @@ private Finding( } case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { sourceProperties_ = com.google.protobuf.MapField.newMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000040; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry sourceProperties__ = @@ -309,12 +316,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static State forNumber(int value) { switch (value) { case 0: @@ -372,7 +387,6 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1.Finding.State) } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -382,10 +396,12 @@ private State(int value) { * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -405,10 +421,12 @@ public java.lang.String getName() { * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -432,10 +450,12 @@ public com.google.protobuf.ByteString getNameBytes() { * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string parent = 2; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -456,10 +476,12 @@ public java.lang.String getParent() { * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string parent = 2; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -479,13 +501,17 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The full resource name of the Google Cloud Platform (GCP) resource this
-   * finding is for. See:
+   * For findings on Google Cloud Platform (GCP) resources, the full resource
+   * name of the GCP resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * When the finding is for a non-GCP resource, the resourceName can be a
+   * customer or partner defined string.
    * This field is immutable after creation time.
    * 
* * string resource_name = 3; + * + * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; @@ -502,13 +528,17 @@ public java.lang.String getResourceName() { * * *
-   * The full resource name of the Google Cloud Platform (GCP) resource this
-   * finding is for. See:
+   * For findings on Google Cloud Platform (GCP) resources, the full resource
+   * name of the GCP resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * When the finding is for a non-GCP resource, the resourceName can be a
+   * customer or partner defined string.
    * This field is immutable after creation time.
    * 
* * string resource_name = 3; + * + * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; @@ -532,6 +562,8 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * * .google.cloud.securitycenter.v1.Finding.State state = 4; + * + * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; @@ -544,6 +576,8 @@ public int getStateValue() { * * * .google.cloud.securitycenter.v1.Finding.State state = 4; + * + * @return The state. */ public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") @@ -564,6 +598,8 @@ public com.google.cloud.securitycenter.v1.Finding.State getState() { * * * string category = 5; + * + * @return The category. */ public java.lang.String getCategory() { java.lang.Object ref = category_; @@ -586,6 +622,8 @@ public java.lang.String getCategory() { * * * string category = 5; + * + * @return The bytes for category. */ public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; @@ -611,6 +649,8 @@ public com.google.protobuf.ByteString getCategoryBytes() { * * * string external_uri = 6; + * + * @return The externalUri. */ public java.lang.String getExternalUri() { java.lang.Object ref = externalUri_; @@ -633,6 +673,8 @@ public java.lang.String getExternalUri() { * * * string external_uri = 6; + * + * @return The bytes for externalUri. */ public com.google.protobuf.ByteString getExternalUriBytes() { java.lang.Object ref = externalUri_; @@ -770,7 +812,11 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key * to the finding. * * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarks_ != null; @@ -784,7 +830,11 @@ public boolean hasSecurityMarks() { * to the finding. * * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The securityMarks. */ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { return securityMarks_ == null @@ -800,7 +850,9 @@ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { * to the finding. * * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { return getSecurityMarks(); @@ -813,11 +865,13 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark * *
    * The time at which the event took place. For example, if the finding
-   * represents an open firewall it would capture the time the open firewall was
-   * detected.
+   * represents an open firewall it would capture the time the detector believes
+   * the firewall became open. The accuracy is determined by the detector.
    * 
* * .google.protobuf.Timestamp event_time = 9; + * + * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return eventTime_ != null; @@ -827,11 +881,13 @@ public boolean hasEventTime() { * *
    * The time at which the event took place. For example, if the finding
-   * represents an open firewall it would capture the time the open firewall was
-   * detected.
+   * represents an open firewall it would capture the time the detector believes
+   * the firewall became open. The accuracy is determined by the detector.
    * 
* * .google.protobuf.Timestamp event_time = 9; + * + * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; @@ -841,8 +897,8 @@ public com.google.protobuf.Timestamp getEventTime() { * *
    * The time at which the event took place. For example, if the finding
-   * represents an open firewall it would capture the time the open firewall was
-   * detected.
+   * represents an open firewall it would capture the time the detector believes
+   * the firewall became open. The accuracy is determined by the detector.
    * 
* * .google.protobuf.Timestamp event_time = 9; @@ -861,6 +917,8 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { * * * .google.protobuf.Timestamp create_time = 10; + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTime_ != null; @@ -873,6 +931,8 @@ public boolean hasCreateTime() { * * * .google.protobuf.Timestamp create_time = 10; + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; @@ -1158,10 +1218,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Cloud Security Command Center (Cloud SCC) finding.
-   * A finding is a record of assessment data (security, risk, health or privacy)
-   * ingested into Cloud SCC for presentation, notification, analysis,
-   * policy testing, and enforcement. For example, an XSS vulnerability in an
-   * App Engine application is a finding.
+   * A finding is a record of assessment data like security, risk, health, or
+   * privacy, that is ingested into Cloud SCC for presentation, notification,
+   * analysis, policy testing, and enforcement. For example, a
+   * cross-site scripting (XSS) vulnerability in an App Engine application is a
+   * finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Finding} @@ -1281,7 +1342,6 @@ public com.google.cloud.securitycenter.v1.Finding buildPartial() { com.google.cloud.securitycenter.v1.Finding result = new com.google.cloud.securitycenter.v1.Finding(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; result.parent_ = parent_; result.resourceName_ = resourceName_; @@ -1305,7 +1365,6 @@ public com.google.cloud.securitycenter.v1.Finding buildPartial() { } else { result.createTime_ = createTimeBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1427,10 +1486,12 @@ public Builder mergeFrom( * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1450,10 +1511,12 @@ public java.lang.String getName() { * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1473,10 +1536,13 @@ public com.google.protobuf.ByteString getNameBytes() { * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1494,10 +1560,12 @@ public Builder setName(java.lang.String value) { * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1512,10 +1580,13 @@ public Builder clearName() { * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1537,10 +1608,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string parent = 2; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -1561,10 +1634,12 @@ public java.lang.String getParent() { * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string parent = 2; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -1585,10 +1660,13 @@ public com.google.protobuf.ByteString getParentBytes() { * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string parent = 2; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -1607,10 +1685,12 @@ public Builder setParent(java.lang.String value) { * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string parent = 2; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -1626,10 +1706,13 @@ public Builder clearParent() { * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string parent = 2; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1647,13 +1730,17 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The full resource name of the Google Cloud Platform (GCP) resource this
-     * finding is for. See:
+     * For findings on Google Cloud Platform (GCP) resources, the full resource
+     * name of the GCP resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * When the finding is for a non-GCP resource, the resourceName can be a
+     * customer or partner defined string.
      * This field is immutable after creation time.
      * 
* * string resource_name = 3; + * + * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; @@ -1670,13 +1757,17 @@ public java.lang.String getResourceName() { * * *
-     * The full resource name of the Google Cloud Platform (GCP) resource this
-     * finding is for. See:
+     * For findings on Google Cloud Platform (GCP) resources, the full resource
+     * name of the GCP resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * When the finding is for a non-GCP resource, the resourceName can be a
+     * customer or partner defined string.
      * This field is immutable after creation time.
      * 
* * string resource_name = 3; + * + * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; @@ -1693,13 +1784,18 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * *
-     * The full resource name of the Google Cloud Platform (GCP) resource this
-     * finding is for. See:
+     * For findings on Google Cloud Platform (GCP) resources, the full resource
+     * name of the GCP resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * When the finding is for a non-GCP resource, the resourceName can be a
+     * customer or partner defined string.
      * This field is immutable after creation time.
      * 
* * string resource_name = 3; + * + * @param value The resourceName to set. + * @return This builder for chaining. */ public Builder setResourceName(java.lang.String value) { if (value == null) { @@ -1714,13 +1810,17 @@ public Builder setResourceName(java.lang.String value) { * * *
-     * The full resource name of the Google Cloud Platform (GCP) resource this
-     * finding is for. See:
+     * For findings on Google Cloud Platform (GCP) resources, the full resource
+     * name of the GCP resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * When the finding is for a non-GCP resource, the resourceName can be a
+     * customer or partner defined string.
      * This field is immutable after creation time.
      * 
* * string resource_name = 3; + * + * @return This builder for chaining. */ public Builder clearResourceName() { @@ -1732,13 +1832,18 @@ public Builder clearResourceName() { * * *
-     * The full resource name of the Google Cloud Platform (GCP) resource this
-     * finding is for. See:
+     * For findings on Google Cloud Platform (GCP) resources, the full resource
+     * name of the GCP resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * When the finding is for a non-GCP resource, the resourceName can be a
+     * customer or partner defined string.
      * This field is immutable after creation time.
      * 
* * string resource_name = 3; + * + * @param value The bytes for resourceName to set. + * @return This builder for chaining. */ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1760,6 +1865,8 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.securitycenter.v1.Finding.State state = 4; + * + * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; @@ -1772,6 +1879,9 @@ public int getStateValue() { * * * .google.cloud.securitycenter.v1.Finding.State state = 4; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; @@ -1786,6 +1896,8 @@ public Builder setStateValue(int value) { * * * .google.cloud.securitycenter.v1.Finding.State state = 4; + * + * @return The state. */ public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") @@ -1803,6 +1915,9 @@ public com.google.cloud.securitycenter.v1.Finding.State getState() { * * * .google.cloud.securitycenter.v1.Finding.State state = 4; + * + * @param value The state to set. + * @return This builder for chaining. */ public Builder setState(com.google.cloud.securitycenter.v1.Finding.State value) { if (value == null) { @@ -1821,6 +1936,8 @@ public Builder setState(com.google.cloud.securitycenter.v1.Finding.State value) * * * .google.cloud.securitycenter.v1.Finding.State state = 4; + * + * @return This builder for chaining. */ public Builder clearState() { @@ -1840,6 +1957,8 @@ public Builder clearState() { * * * string category = 5; + * + * @return The category. */ public java.lang.String getCategory() { java.lang.Object ref = category_; @@ -1862,6 +1981,8 @@ public java.lang.String getCategory() { * * * string category = 5; + * + * @return The bytes for category. */ public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; @@ -1884,6 +2005,9 @@ public com.google.protobuf.ByteString getCategoryBytes() { * * * string category = 5; + * + * @param value The category to set. + * @return This builder for chaining. */ public Builder setCategory(java.lang.String value) { if (value == null) { @@ -1904,6 +2028,8 @@ public Builder setCategory(java.lang.String value) { * * * string category = 5; + * + * @return This builder for chaining. */ public Builder clearCategory() { @@ -1921,6 +2047,9 @@ public Builder clearCategory() { * * * string category = 5; + * + * @param value The bytes for category to set. + * @return This builder for chaining. */ public Builder setCategoryBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1944,6 +2073,8 @@ public Builder setCategoryBytes(com.google.protobuf.ByteString value) { * * * string external_uri = 6; + * + * @return The externalUri. */ public java.lang.String getExternalUri() { java.lang.Object ref = externalUri_; @@ -1966,6 +2097,8 @@ public java.lang.String getExternalUri() { * * * string external_uri = 6; + * + * @return The bytes for externalUri. */ public com.google.protobuf.ByteString getExternalUriBytes() { java.lang.Object ref = externalUri_; @@ -1988,6 +2121,9 @@ public com.google.protobuf.ByteString getExternalUriBytes() { * * * string external_uri = 6; + * + * @param value The externalUri to set. + * @return This builder for chaining. */ public Builder setExternalUri(java.lang.String value) { if (value == null) { @@ -2008,6 +2144,8 @@ public Builder setExternalUri(java.lang.String value) { * * * string external_uri = 6; + * + * @return This builder for chaining. */ public Builder clearExternalUri() { @@ -2025,6 +2163,9 @@ public Builder clearExternalUri() { * * * string external_uri = 6; + * + * @param value The bytes for externalUri to set. + * @return This builder for chaining. */ public Builder setExternalUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2233,7 +2374,11 @@ public Builder putAllSourceProperties( * to the finding. * * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; @@ -2247,7 +2392,11 @@ public boolean hasSecurityMarks() { * to the finding. * * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The securityMarks. */ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -2267,7 +2416,9 @@ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { * to the finding. * * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -2291,7 +2442,9 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks * to the finding. * * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1.SecurityMarks.Builder builderForValue) { @@ -2313,7 +2466,9 @@ public Builder setSecurityMarks( * to the finding. * * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -2341,7 +2496,9 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMar * to the finding. * * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -2363,7 +2520,9 @@ public Builder clearSecurityMarks() { * to the finding. * * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.securitycenter.v1.SecurityMarks.Builder getSecurityMarksBuilder() { @@ -2379,7 +2538,9 @@ public com.google.cloud.securitycenter.v1.SecurityMarks.Builder getSecurityMarks * to the finding. * * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { if (securityMarksBuilder_ != null) { @@ -2399,7 +2560,9 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark * to the finding. * * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.SecurityMarks, @@ -2429,11 +2592,13 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; + * + * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return eventTimeBuilder_ != null || eventTime_ != null; @@ -2443,11 +2608,13 @@ public boolean hasEventTime() { * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; + * + * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { if (eventTimeBuilder_ == null) { @@ -2461,8 +2628,8 @@ public com.google.protobuf.Timestamp getEventTime() { * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; @@ -2485,8 +2652,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; @@ -2506,8 +2673,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; @@ -2532,8 +2699,8 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; @@ -2554,8 +2721,8 @@ public Builder clearEventTime() { * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; @@ -2570,8 +2737,8 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; @@ -2588,8 +2755,8 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; @@ -2625,6 +2792,8 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { * * * .google.protobuf.Timestamp create_time = 10; + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; @@ -2637,6 +2806,8 @@ public boolean hasCreateTime() { * * * .google.protobuf.Timestamp create_time = 10; + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java index e7b0b1130..c967638d7 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class FindingName implements ResourceName { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java index 6b6df20ca..be2e783f2 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java @@ -30,10 +30,12 @@ public interface FindingOrBuilder * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -43,10 +45,12 @@ public interface FindingOrBuilder * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -58,10 +62,12 @@ public interface FindingOrBuilder * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string parent = 2; + * + * @return The parent. */ java.lang.String getParent(); /** @@ -72,10 +78,12 @@ public interface FindingOrBuilder * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string parent = 2; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -83,26 +91,34 @@ public interface FindingOrBuilder * * *
-   * The full resource name of the Google Cloud Platform (GCP) resource this
-   * finding is for. See:
+   * For findings on Google Cloud Platform (GCP) resources, the full resource
+   * name of the GCP resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * When the finding is for a non-GCP resource, the resourceName can be a
+   * customer or partner defined string.
    * This field is immutable after creation time.
    * 
* * string resource_name = 3; + * + * @return The resourceName. */ java.lang.String getResourceName(); /** * * *
-   * The full resource name of the Google Cloud Platform (GCP) resource this
-   * finding is for. See:
+   * For findings on Google Cloud Platform (GCP) resources, the full resource
+   * name of the GCP resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * When the finding is for a non-GCP resource, the resourceName can be a
+   * customer or partner defined string.
    * This field is immutable after creation time.
    * 
* * string resource_name = 3; + * + * @return The bytes for resourceName. */ com.google.protobuf.ByteString getResourceNameBytes(); @@ -114,6 +130,8 @@ public interface FindingOrBuilder * * * .google.cloud.securitycenter.v1.Finding.State state = 4; + * + * @return The enum numeric value on the wire for state. */ int getStateValue(); /** @@ -124,6 +142,8 @@ public interface FindingOrBuilder * * * .google.cloud.securitycenter.v1.Finding.State state = 4; + * + * @return The state. */ com.google.cloud.securitycenter.v1.Finding.State getState(); @@ -137,6 +157,8 @@ public interface FindingOrBuilder * * * string category = 5; + * + * @return The category. */ java.lang.String getCategory(); /** @@ -149,6 +171,8 @@ public interface FindingOrBuilder * * * string category = 5; + * + * @return The bytes for category. */ com.google.protobuf.ByteString getCategoryBytes(); @@ -162,6 +186,8 @@ public interface FindingOrBuilder * * * string external_uri = 6; + * + * @return The externalUri. */ java.lang.String getExternalUri(); /** @@ -174,6 +200,8 @@ public interface FindingOrBuilder * * * string external_uri = 6; + * + * @return The bytes for externalUri. */ com.google.protobuf.ByteString getExternalUriBytes(); @@ -256,7 +284,11 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * to the finding. * * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** @@ -268,7 +300,11 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * to the finding. * * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The securityMarks. */ com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks(); /** @@ -280,7 +316,9 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * to the finding. * * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); @@ -289,11 +327,13 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * *
    * The time at which the event took place. For example, if the finding
-   * represents an open firewall it would capture the time the open firewall was
-   * detected.
+   * represents an open firewall it would capture the time the detector believes
+   * the firewall became open. The accuracy is determined by the detector.
    * 
* * .google.protobuf.Timestamp event_time = 9; + * + * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** @@ -301,11 +341,13 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * *
    * The time at which the event took place. For example, if the finding
-   * represents an open firewall it would capture the time the open firewall was
-   * detected.
+   * represents an open firewall it would capture the time the detector believes
+   * the firewall became open. The accuracy is determined by the detector.
    * 
* * .google.protobuf.Timestamp event_time = 9; + * + * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** @@ -313,8 +355,8 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * *
    * The time at which the event took place. For example, if the finding
-   * represents an open firewall it would capture the time the open firewall was
-   * detected.
+   * represents an open firewall it would capture the time the detector believes
+   * the firewall became open. The accuracy is determined by the detector.
    * 
* * .google.protobuf.Timestamp event_time = 9; @@ -329,6 +371,8 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * * .google.protobuf.Timestamp create_time = 10; + * + * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** @@ -339,6 +383,8 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * * .google.protobuf.Timestamp create_time = 10; + * + * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java index be1113f80..de68fe5ae 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java @@ -45,49 +45,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n,google/cloud/securitycenter/v1/finding" - + ".proto\022\036google.cloud.securitycenter.v1\032\034" - + "google/api/annotations.proto\0323google/clo" - + "ud/securitycenter/v1/security_marks.prot" - + "o\032\034google/protobuf/struct.proto\032\037google/" - + "protobuf/timestamp.proto\"\261\004\n\007Finding\022\014\n\004" - + "name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\025\n\rresource_n" - + "ame\030\003 \001(\t\022<\n\005state\030\004 \001(\0162-.google.cloud." - + "securitycenter.v1.Finding.State\022\020\n\010categ" - + "ory\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022X\n\021sourc" - + "e_properties\030\007 \003(\0132=.google.cloud.securi" - + "tycenter.v1.Finding.SourcePropertiesEntr" - + "y\022E\n\016security_marks\030\010 \001(\0132-.google.cloud" - + ".securitycenter.v1.SecurityMarks\022.\n\neven" - + "t_time\030\t \001(\0132\032.google.protobuf.Timestamp" - + "\022/\n\013create_time\030\n \001(\0132\032.google.protobuf." - + "Timestamp\032O\n\025SourcePropertiesEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf" - + ".Value:\0028\001\"8\n\005State\022\025\n\021STATE_UNSPECIFIED" - + "\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002B\332\001\n\"com.goo" - + "gle.cloud.securitycenter.v1P\001ZLgoogle.go" - + "lang.org/genproto/googleapis/cloud/secur" - + "itycenter/v1;securitycenter\252\002\036Google.Clo" - + "ud.SecurityCenter.V1\312\002\036Google\\Cloud\\Secu" - + "rityCenter\\V1\352\002!Google::Cloud::SecurityC" - + "enter::V1b\006proto3" + + ".proto\022\036google.cloud.securitycenter.v1\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\0323google/cloud/securit" + + "ycenter/v1/security_marks.proto\032\034google/" + + "protobuf/struct.proto\032\037google/protobuf/t" + + "imestamp.proto\032\034google/api/annotations.p" + + "roto\"\244\005\n\007Finding\022\014\n\004name\030\001 \001(\t\022\016\n\006parent" + + "\030\002 \001(\t\022\025\n\rresource_name\030\003 \001(\t\022<\n\005state\030\004" + + " \001(\0162-.google.cloud.securitycenter.v1.Fi" + + "nding.State\022\020\n\010category\030\005 \001(\t\022\024\n\014externa" + + "l_uri\030\006 \001(\t\022X\n\021source_properties\030\007 \003(\0132=" + + ".google.cloud.securitycenter.v1.Finding." + + "SourcePropertiesEntry\022J\n\016security_marks\030" + + "\010 \001(\0132-.google.cloud.securitycenter.v1.S" + + "ecurityMarksB\003\340A\003\022.\n\nevent_time\030\t \001(\0132\032." + + "google.protobuf.Timestamp\022/\n\013create_time" + + "\030\n \001(\0132\032.google.protobuf.Timestamp\032O\n\025So" + + "urcePropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005valu" + + "e\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"8\n\005S" + + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022" + + "\014\n\010INACTIVE\020\002:l\352Ai\n%securitycenter.googl" + + "eapis.com/Finding\022@organizations/{organi" + + "zation}/sources/{source}/findings/{findi" + + "ng}B\332\001\n\"com.google.cloud.securitycenter." + + "v1P\001ZLgoogle.golang.org/genproto/googlea" + + "pis/cloud/securitycenter/v1;securitycent" + + "er\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036Go" + + "ogle\\Cloud\\SecurityCenter\\V1\352\002!Google::C" + + "loud::SecurityCenter::V1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_securitycenter_v1_Finding_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable = @@ -113,10 +111,18 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Key", "Value", }); - com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingSecurityMarksName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingSecurityMarksName.java index c36be3de0..2e4f70f1d 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingSecurityMarksName.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingSecurityMarksName.java @@ -23,8 +23,13 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * AUTO-GENERATED DOCUMENTATION AND CLASS + * + * @deprecated This resource name class will be removed in the next major version. + */ @javax.annotation.Generated("by GAPIC protoc plugin") +@Deprecated public class FindingSecurityMarksName extends SecuritymarksName { private static final PathTemplate PATH_TEMPLATE = diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java index 581a837f3..20befbca8 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java @@ -42,6 +42,12 @@ private GetOrganizationSettingsRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOrganizationSettingsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private GetOrganizationSettingsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -113,11 +118,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Name of the organization to get organization settings for. Its format is
+   * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -134,11 +143,15 @@ public java.lang.String getName() { * * *
-   * Name of the organization to get organization settings for. Its format is
+   * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -482,11 +495,15 @@ public Builder mergeFrom( * * *
-     * Name of the organization to get organization settings for. Its format is
+     * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -503,11 +520,15 @@ public java.lang.String getName() { * * *
-     * Name of the organization to get organization settings for. Its format is
+     * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -524,11 +545,16 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Name of the organization to get organization settings for. Its format is
+     * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -543,11 +569,15 @@ public Builder setName(java.lang.String value) { * * *
-     * Name of the organization to get organization settings for. Its format is
+     * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -559,11 +589,16 @@ public Builder clearName() { * * *
-     * Name of the organization to get organization settings for. Its format is
+     * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java index f12495fa2..f626b71dd 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface GetOrganizationSettingsRequestOrBuilder * * *
-   * Name of the organization to get organization settings for. Its format is
+   * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ java.lang.String getName(); /** * * *
-   * Name of the organization to get organization settings for. Its format is
+   * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java index 97142850c..727e2991b 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java @@ -41,6 +41,12 @@ private GetSourceRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSourceRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private GetSourceRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -112,11 +117,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Relative resource name of the source. Its format is
+   * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -133,11 +142,15 @@ public java.lang.String getName() { * * *
-   * Relative resource name of the source. Its format is
+   * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -474,11 +487,15 @@ public Builder mergeFrom( * * *
-     * Relative resource name of the source. Its format is
+     * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -495,11 +512,15 @@ public java.lang.String getName() { * * *
-     * Relative resource name of the source. Its format is
+     * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -516,11 +537,16 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Relative resource name of the source. Its format is
+     * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -535,11 +561,15 @@ public Builder setName(java.lang.String value) { * * *
-     * Relative resource name of the source. Its format is
+     * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -551,11 +581,16 @@ public Builder clearName() { * * *
-     * Relative resource name of the source. Its format is
+     * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java index 9a5344790..19ccd2421 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface GetSourceRequestOrBuilder * * *
-   * Relative resource name of the source. Its format is
+   * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ java.lang.String getName(); /** * * *
-   * Relative resource name of the source. Its format is
+   * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java index 46dff8cb5..6ab620345 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java @@ -44,6 +44,12 @@ private GroupAssetsRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroupAssetsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -57,7 +63,6 @@ private GroupAssetsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -171,11 +176,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Name of the organization to groupBy. Its format is
+   * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -192,11 +201,15 @@ public java.lang.String getParent() { * * *
-   * Name of the organization to groupBy. Its format is
+   * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -236,29 +249,34 @@ public com.google.protobuf.ByteString getParentBytes() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | '=' - * update_time | '=', '>', '<', '>=', '<=' + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | '=', '>', '<', '>=', '<=' + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', '>', '<', '>=', '<=' - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -295,29 +313,34 @@ public java.lang.String getFilter() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | '=' - * update_time | '=', '>', '<', '>=', '<=' + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | '=', '>', '<', '>=', '<=' + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', '>', '<', '>=', '<=' - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -337,19 +360,25 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-   * Expression that defines what assets fields to use for grouping. The string
+   * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
    * example:
    * "security_center_properties.resource_project,security_center_properties.project".
    * The following fields are supported when compare_duration is not set:
    * * security_center_properties.resource_project
+   * * security_center_properties.resource_project_display_name
    * * security_center_properties.resource_type
    * * security_center_properties.resource_parent
+   * * security_center_properties.resource_parent_display_name
    * The following fields are supported when compare_duration is set:
    * * security_center_properties.resource_type
+   * * security_center_properties.resource_project_display_name
+   * * security_center_properties.resource_parent_display_name
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; @@ -366,19 +395,25 @@ public java.lang.String getGroupBy() { * * *
-   * Expression that defines what assets fields to use for grouping. The string
+   * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
    * example:
    * "security_center_properties.resource_project,security_center_properties.project".
    * The following fields are supported when compare_duration is not set:
    * * security_center_properties.resource_project
+   * * security_center_properties.resource_project_display_name
    * * security_center_properties.resource_type
    * * security_center_properties.resource_parent
+   * * security_center_properties.resource_parent_display_name
    * The following fields are supported when compare_duration is set:
    * * security_center_properties.resource_type
+   * * security_center_properties.resource_project_display_name
+   * * security_center_properties.resource_parent_display_name
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for groupBy. */ public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; @@ -423,6 +458,8 @@ public com.google.protobuf.ByteString getGroupByBytes() { * * * .google.protobuf.Duration compare_duration = 4; + * + * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDuration_ != null; @@ -456,6 +493,8 @@ public boolean hasCompareDuration() { * * * .google.protobuf.Duration compare_duration = 4; + * + * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { return compareDuration_ == null @@ -509,6 +548,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * * .google.protobuf.Timestamp read_time = 5; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -524,6 +565,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 5; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -556,6 +599,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string page_token = 7; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -578,6 +623,8 @@ public java.lang.String getPageToken() { * * * string page_token = 7; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -602,6 +649,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * int32 page_size = 8; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -1050,11 +1099,15 @@ public Builder mergeFrom( * * *
-     * Name of the organization to groupBy. Its format is
+     * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -1071,11 +1124,15 @@ public java.lang.String getParent() { * * *
-     * Name of the organization to groupBy. Its format is
+     * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -1092,11 +1149,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Name of the organization to groupBy. Its format is
+     * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -1111,11 +1173,15 @@ public Builder setParent(java.lang.String value) { * * *
-     * Name of the organization to groupBy. Its format is
+     * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -1127,11 +1193,16 @@ public Builder clearParent() { * * *
-     * Name of the organization to groupBy. Its format is
+     * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1169,29 +1240,34 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | '=' - * update_time | '=', '>', '<', '>=', '<=' + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | '=', '>', '<', '>=', '<=' + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', '>', '<', '>=', '<=' - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -1228,29 +1304,34 @@ public java.lang.String getFilter() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | '=' - * update_time | '=', '>', '<', '>=', '<=' + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | '=', '>', '<', '>=', '<=' + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', '>', '<', '>=', '<=' - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -1287,29 +1368,35 @@ public com.google.protobuf.ByteString getFilterBytes() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | '=' - * update_time | '=', '>', '<', '>=', '<=' + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | '=', '>', '<', '>=', '<=' + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', '>', '<', '>=', '<=' - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. */ public Builder setFilter(java.lang.String value) { if (value == null) { @@ -1344,29 +1431,34 @@ public Builder setFilter(java.lang.String value) { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | '=' - * update_time | '=', '>', '<', '>=', '<=' + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | '=', '>', '<', '>=', '<=' + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', '>', '<', '>=', '<=' - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return This builder for chaining. */ public Builder clearFilter() { @@ -1398,29 +1490,35 @@ public Builder clearFilter() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | '=' - * update_time | '=', '>', '<', '>=', '<=' + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | '=', '>', '<', '>=', '<=' + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', '>', '<', '>=', '<=' - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1438,19 +1536,25 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
-     * Expression that defines what assets fields to use for grouping. The string
+     * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
      * example:
      * "security_center_properties.resource_project,security_center_properties.project".
      * The following fields are supported when compare_duration is not set:
      * * security_center_properties.resource_project
+     * * security_center_properties.resource_project_display_name
      * * security_center_properties.resource_type
      * * security_center_properties.resource_parent
+     * * security_center_properties.resource_parent_display_name
      * The following fields are supported when compare_duration is set:
      * * security_center_properties.resource_type
+     * * security_center_properties.resource_project_display_name
+     * * security_center_properties.resource_parent_display_name
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; @@ -1467,19 +1571,25 @@ public java.lang.String getGroupBy() { * * *
-     * Expression that defines what assets fields to use for grouping. The string
+     * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
      * example:
      * "security_center_properties.resource_project,security_center_properties.project".
      * The following fields are supported when compare_duration is not set:
      * * security_center_properties.resource_project
+     * * security_center_properties.resource_project_display_name
      * * security_center_properties.resource_type
      * * security_center_properties.resource_parent
+     * * security_center_properties.resource_parent_display_name
      * The following fields are supported when compare_duration is set:
      * * security_center_properties.resource_type
+     * * security_center_properties.resource_project_display_name
+     * * security_center_properties.resource_parent_display_name
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for groupBy. */ public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; @@ -1496,19 +1606,26 @@ public com.google.protobuf.ByteString getGroupByBytes() { * * *
-     * Expression that defines what assets fields to use for grouping. The string
+     * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
      * example:
      * "security_center_properties.resource_project,security_center_properties.project".
      * The following fields are supported when compare_duration is not set:
      * * security_center_properties.resource_project
+     * * security_center_properties.resource_project_display_name
      * * security_center_properties.resource_type
      * * security_center_properties.resource_parent
+     * * security_center_properties.resource_parent_display_name
      * The following fields are supported when compare_duration is set:
      * * security_center_properties.resource_type
+     * * security_center_properties.resource_project_display_name
+     * * security_center_properties.resource_parent_display_name
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The groupBy to set. + * @return This builder for chaining. */ public Builder setGroupBy(java.lang.String value) { if (value == null) { @@ -1523,19 +1640,25 @@ public Builder setGroupBy(java.lang.String value) { * * *
-     * Expression that defines what assets fields to use for grouping. The string
+     * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
      * example:
      * "security_center_properties.resource_project,security_center_properties.project".
      * The following fields are supported when compare_duration is not set:
      * * security_center_properties.resource_project
+     * * security_center_properties.resource_project_display_name
      * * security_center_properties.resource_type
      * * security_center_properties.resource_parent
+     * * security_center_properties.resource_parent_display_name
      * The following fields are supported when compare_duration is set:
      * * security_center_properties.resource_type
+     * * security_center_properties.resource_project_display_name
+     * * security_center_properties.resource_parent_display_name
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearGroupBy() { @@ -1547,19 +1670,26 @@ public Builder clearGroupBy() { * * *
-     * Expression that defines what assets fields to use for grouping. The string
+     * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
      * example:
      * "security_center_properties.resource_project,security_center_properties.project".
      * The following fields are supported when compare_duration is not set:
      * * security_center_properties.resource_project
+     * * security_center_properties.resource_project_display_name
      * * security_center_properties.resource_type
      * * security_center_properties.resource_parent
+     * * security_center_properties.resource_parent_display_name
      * The following fields are supported when compare_duration is set:
      * * security_center_properties.resource_type
+     * * security_center_properties.resource_project_display_name
+     * * security_center_properties.resource_parent_display_name
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for groupBy to set. + * @return This builder for chaining. */ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1607,6 +1737,8 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Duration compare_duration = 4; + * + * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; @@ -1640,6 +1772,8 @@ public boolean hasCompareDuration() { * * * .google.protobuf.Duration compare_duration = 4; + * + * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { @@ -1959,6 +2093,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * * .google.protobuf.Timestamp read_time = 5; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -1974,6 +2110,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 5; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -2155,6 +2293,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string page_token = 7; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -2177,6 +2317,8 @@ public java.lang.String getPageToken() { * * * string page_token = 7; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -2199,6 +2341,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 7; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -2219,6 +2364,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 7; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -2236,6 +2383,9 @@ public Builder clearPageToken() { * * * string page_token = 7; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2258,6 +2408,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 8; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -2271,6 +2423,9 @@ public int getPageSize() { * * * int32 page_size = 8; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -2287,6 +2442,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 8; + * + * @return This builder for chaining. */ public Builder clearPageSize() { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java index b8d276d9e..6a3725768 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface GroupAssetsRequestOrBuilder * * *
-   * Name of the organization to groupBy. Its format is
+   * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Name of the organization to groupBy. Its format is
+   * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -70,29 +78,34 @@ public interface GroupAssetsRequestOrBuilder * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | '=' - * update_time | '=', '>', '<', '>=', '<=' + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | '=', '>', '<', '>=', '<=' + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', '>', '<', '>=', '<=' - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The filter. */ java.lang.String getFilter(); /** @@ -119,29 +132,34 @@ public interface GroupAssetsRequestOrBuilder * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | '=' - * update_time | '=', '>', '<', '>=', '<=' + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | '=', '>', '<', '>=', '<=' + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', '>', '<', '>=', '<=' - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); @@ -149,38 +167,50 @@ public interface GroupAssetsRequestOrBuilder * * *
-   * Expression that defines what assets fields to use for grouping. The string
+   * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
    * example:
    * "security_center_properties.resource_project,security_center_properties.project".
    * The following fields are supported when compare_duration is not set:
    * * security_center_properties.resource_project
+   * * security_center_properties.resource_project_display_name
    * * security_center_properties.resource_type
    * * security_center_properties.resource_parent
+   * * security_center_properties.resource_parent_display_name
    * The following fields are supported when compare_duration is set:
    * * security_center_properties.resource_type
+   * * security_center_properties.resource_project_display_name
+   * * security_center_properties.resource_parent_display_name
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The groupBy. */ java.lang.String getGroupBy(); /** * * *
-   * Expression that defines what assets fields to use for grouping. The string
+   * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
    * example:
    * "security_center_properties.resource_project,security_center_properties.project".
    * The following fields are supported when compare_duration is not set:
    * * security_center_properties.resource_project
+   * * security_center_properties.resource_project_display_name
    * * security_center_properties.resource_type
    * * security_center_properties.resource_parent
+   * * security_center_properties.resource_parent_display_name
    * The following fields are supported when compare_duration is set:
    * * security_center_properties.resource_type
+   * * security_center_properties.resource_project_display_name
+   * * security_center_properties.resource_parent_display_name
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for groupBy. */ com.google.protobuf.ByteString getGroupByBytes(); @@ -213,6 +243,8 @@ public interface GroupAssetsRequestOrBuilder * * * .google.protobuf.Duration compare_duration = 4; + * + * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** @@ -244,6 +276,8 @@ public interface GroupAssetsRequestOrBuilder * * * .google.protobuf.Duration compare_duration = 4; + * + * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** @@ -289,6 +323,8 @@ public interface GroupAssetsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 5; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -302,6 +338,8 @@ public interface GroupAssetsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 5; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -328,6 +366,8 @@ public interface GroupAssetsRequestOrBuilder * * * string page_token = 7; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -340,6 +380,8 @@ public interface GroupAssetsRequestOrBuilder * * * string page_token = 7; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); @@ -352,6 +394,8 @@ public interface GroupAssetsRequestOrBuilder * * * int32 page_size = 8; + * + * @return The pageSize. */ int getPageSize(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java index 81bea92f8..4eb289a92 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java @@ -42,6 +42,12 @@ private GroupAssetsResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroupAssetsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -142,7 +148,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.securitycenter.v1.GroupAssetsResponse.Builder.class); } - private int bitField0_; public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** @@ -228,6 +233,8 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -240,6 +247,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -268,6 +277,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -289,6 +300,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -312,6 +325,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * int32 total_size = 4; + * + * @return The totalSize. */ public int getTotalSize() { return totalSize_; @@ -602,7 +617,6 @@ public com.google.cloud.securitycenter.v1.GroupAssetsResponse buildPartial() { com.google.cloud.securitycenter.v1.GroupAssetsResponse result = new com.google.cloud.securitycenter.v1.GroupAssetsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -619,7 +633,6 @@ public com.google.cloud.securitycenter.v1.GroupAssetsResponse buildPartial() { } result.nextPageToken_ = nextPageToken_; result.totalSize_ = totalSize_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1149,6 +1162,8 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -1161,6 +1176,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -1320,6 +1337,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -1341,6 +1360,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1362,6 +1383,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 3; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -1381,6 +1405,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 3; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1397,6 +1423,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 3; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1418,6 +1447,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 total_size = 4; + * + * @return The totalSize. */ public int getTotalSize() { return totalSize_; @@ -1430,6 +1461,9 @@ public int getTotalSize() { * * * int32 total_size = 4; + * + * @param value The totalSize to set. + * @return This builder for chaining. */ public Builder setTotalSize(int value) { @@ -1445,6 +1479,8 @@ public Builder setTotalSize(int value) { * * * int32 total_size = 4; + * + * @return This builder for chaining. */ public Builder clearTotalSize() { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java index e99ce96f7..827a32e70 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java @@ -93,6 +93,8 @@ public interface GroupAssetsResponseOrBuilder * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -103,6 +105,8 @@ public interface GroupAssetsResponseOrBuilder * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -125,6 +129,8 @@ public interface GroupAssetsResponseOrBuilder * * * string next_page_token = 3; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -136,6 +142,8 @@ public interface GroupAssetsResponseOrBuilder * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); @@ -147,6 +155,8 @@ public interface GroupAssetsResponseOrBuilder * * * int32 total_size = 4; + * + * @return The totalSize. */ int getTotalSize(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java index 9926b0096..b1ff82fed 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java @@ -44,6 +44,12 @@ private GroupFindingsRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroupFindingsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -57,7 +63,6 @@ private GroupFindingsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -171,13 +176,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Name of the source to groupBy. Its format is
+   * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
    * all sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -194,13 +203,17 @@ public java.lang.String getParent() { * * *
-   * Name of the source to groupBy. Its format is
+   * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
    * all sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -238,23 +251,25 @@ public com.google.protobuf.ByteString getParentBytes() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * parent: `=`, `:` + * * resource_name: `=`, `:` + * * state: `=`, `:` + * * category: `=`, `:` + * * external_uri: `=`, `:` + * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -289,23 +304,25 @@ public java.lang.String getFilter() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * parent: `=`, `:` + * * resource_name: `=`, `:` + * * state: `=`, `:` + * * category: `=`, `:` + * * external_uri: `=`, `:` + * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -325,7 +342,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-   * Expression that defines what assets fields to use for grouping (including
+   * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
    * list of fields. For example: "parent,resource_name".
    * The following fields are supported:
@@ -337,7 +354,9 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * * state_change
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; @@ -354,7 +373,7 @@ public java.lang.String getGroupBy() { * * *
-   * Expression that defines what assets fields to use for grouping (including
+   * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
    * list of fields. For example: "parent,resource_name".
    * The following fields are supported:
@@ -366,7 +385,9 @@ public java.lang.String getGroupBy() {
    * * state_change
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for groupBy. */ public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; @@ -393,6 +414,8 @@ public com.google.protobuf.ByteString getGroupByBytes() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -408,6 +431,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -458,6 +483,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDuration_ != null; @@ -490,6 +517,8 @@ public boolean hasCompareDuration() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { return compareDuration_ == null @@ -541,6 +570,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * * string page_token = 7; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -563,6 +594,8 @@ public java.lang.String getPageToken() { * * * string page_token = 7; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -587,6 +620,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * int32 page_size = 8; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -1035,13 +1070,17 @@ public Builder mergeFrom( * * *
-     * Name of the source to groupBy. Its format is
+     * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
      * all sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -1058,13 +1097,17 @@ public java.lang.String getParent() { * * *
-     * Name of the source to groupBy. Its format is
+     * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
      * all sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -1081,13 +1124,18 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Name of the source to groupBy. Its format is
+     * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
      * all sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -1102,13 +1150,17 @@ public Builder setParent(java.lang.String value) { * * *
-     * Name of the source to groupBy. Its format is
+     * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
      * all sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -1120,13 +1172,18 @@ public Builder clearParent() { * * *
-     * Name of the source to groupBy. Its format is
+     * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
      * all sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1162,23 +1219,25 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * parent: `=`, `:` + * * resource_name: `=`, `:` + * * state: `=`, `:` + * * category: `=`, `:` + * * external_uri: `=`, `:` + * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -1213,23 +1272,25 @@ public java.lang.String getFilter() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * parent: `=`, `:` + * * resource_name: `=`, `:` + * * state: `=`, `:` + * * category: `=`, `:` + * * external_uri: `=`, `:` + * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -1264,23 +1325,26 @@ public com.google.protobuf.ByteString getFilterBytes() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * parent: `=`, `:` + * * resource_name: `=`, `:` + * * state: `=`, `:` + * * category: `=`, `:` + * * external_uri: `=`, `:` + * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. */ public Builder setFilter(java.lang.String value) { if (value == null) { @@ -1313,23 +1377,25 @@ public Builder setFilter(java.lang.String value) { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * parent: `=`, `:` + * * resource_name: `=`, `:` + * * state: `=`, `:` + * * category: `=`, `:` + * * external_uri: `=`, `:` + * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return This builder for chaining. */ public Builder clearFilter() { @@ -1359,23 +1425,26 @@ public Builder clearFilter() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * parent: `=`, `:` + * * resource_name: `=`, `:` + * * state: `=`, `:` + * * category: `=`, `:` + * * external_uri: `=`, `:` + * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1393,7 +1462,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
-     * Expression that defines what assets fields to use for grouping (including
+     * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
      * list of fields. For example: "parent,resource_name".
      * The following fields are supported:
@@ -1405,7 +1474,9 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * * state_change
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; @@ -1422,7 +1493,7 @@ public java.lang.String getGroupBy() { * * *
-     * Expression that defines what assets fields to use for grouping (including
+     * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
      * list of fields. For example: "parent,resource_name".
      * The following fields are supported:
@@ -1434,7 +1505,9 @@ public java.lang.String getGroupBy() {
      * * state_change
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for groupBy. */ public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; @@ -1451,7 +1524,7 @@ public com.google.protobuf.ByteString getGroupByBytes() { * * *
-     * Expression that defines what assets fields to use for grouping (including
+     * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
      * list of fields. For example: "parent,resource_name".
      * The following fields are supported:
@@ -1463,7 +1536,10 @@ public com.google.protobuf.ByteString getGroupByBytes() {
      * * state_change
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The groupBy to set. + * @return This builder for chaining. */ public Builder setGroupBy(java.lang.String value) { if (value == null) { @@ -1478,7 +1554,7 @@ public Builder setGroupBy(java.lang.String value) { * * *
-     * Expression that defines what assets fields to use for grouping (including
+     * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
      * list of fields. For example: "parent,resource_name".
      * The following fields are supported:
@@ -1490,7 +1566,9 @@ public Builder setGroupBy(java.lang.String value) {
      * * state_change
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearGroupBy() { @@ -1502,7 +1580,7 @@ public Builder clearGroupBy() { * * *
-     * Expression that defines what assets fields to use for grouping (including
+     * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
      * list of fields. For example: "parent,resource_name".
      * The following fields are supported:
@@ -1514,7 +1592,10 @@ public Builder clearGroupBy() {
      * * state_change
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for groupBy to set. + * @return This builder for chaining. */ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1544,6 +1625,8 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -1559,6 +1642,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -1763,6 +1848,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; @@ -1795,6 +1882,8 @@ public boolean hasCompareDuration() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { @@ -2101,6 +2190,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * * string page_token = 7; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -2123,6 +2214,8 @@ public java.lang.String getPageToken() { * * * string page_token = 7; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -2145,6 +2238,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 7; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -2165,6 +2261,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 7; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -2182,6 +2280,9 @@ public Builder clearPageToken() { * * * string page_token = 7; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2204,6 +2305,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 8; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -2217,6 +2320,9 @@ public int getPageSize() { * * * int32 page_size = 8; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -2233,6 +2339,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 8; + * + * @return This builder for chaining. */ public Builder clearPageSize() { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java index 74dfde00e..a477f62c9 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java @@ -27,26 +27,34 @@ public interface GroupFindingsRequestOrBuilder * * *
-   * Name of the source to groupBy. Its format is
+   * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
    * all sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Name of the source to groupBy. Its format is
+   * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
    * all sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -72,23 +80,25 @@ public interface GroupFindingsRequestOrBuilder * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * parent: `=`, `:` + * * resource_name: `=`, `:` + * * state: `=`, `:` + * * category: `=`, `:` + * * external_uri: `=`, `:` + * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The filter. */ java.lang.String getFilter(); /** @@ -113,23 +123,25 @@ public interface GroupFindingsRequestOrBuilder * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * parent: `=`, `:` + * * resource_name: `=`, `:` + * * state: `=`, `:` + * * category: `=`, `:` + * * external_uri: `=`, `:` + * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); @@ -137,7 +149,7 @@ public interface GroupFindingsRequestOrBuilder * * *
-   * Expression that defines what assets fields to use for grouping (including
+   * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
    * list of fields. For example: "parent,resource_name".
    * The following fields are supported:
@@ -149,14 +161,16 @@ public interface GroupFindingsRequestOrBuilder
    * * state_change
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The groupBy. */ java.lang.String getGroupBy(); /** * * *
-   * Expression that defines what assets fields to use for grouping (including
+   * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
    * list of fields. For example: "parent,resource_name".
    * The following fields are supported:
@@ -168,7 +182,9 @@ public interface GroupFindingsRequestOrBuilder
    * * state_change
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for groupBy. */ com.google.protobuf.ByteString getGroupByBytes(); @@ -183,6 +199,8 @@ public interface GroupFindingsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -196,6 +214,8 @@ public interface GroupFindingsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -240,6 +260,8 @@ public interface GroupFindingsRequestOrBuilder * * * .google.protobuf.Duration compare_duration = 5; + * + * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** @@ -270,6 +292,8 @@ public interface GroupFindingsRequestOrBuilder * * * .google.protobuf.Duration compare_duration = 5; + * + * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** @@ -313,6 +337,8 @@ public interface GroupFindingsRequestOrBuilder * * * string page_token = 7; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -325,6 +351,8 @@ public interface GroupFindingsRequestOrBuilder * * * string page_token = 7; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); @@ -337,6 +365,8 @@ public interface GroupFindingsRequestOrBuilder * * * int32 page_size = 8; + * + * @return The pageSize. */ int getPageSize(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java index 90bb96540..59942e72b 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java @@ -42,6 +42,12 @@ private GroupFindingsResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroupFindingsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -142,7 +148,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.securitycenter.v1.GroupFindingsResponse.Builder.class); } - private int bitField0_; public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** @@ -228,6 +233,8 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -240,6 +247,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -268,6 +277,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -289,6 +300,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -312,6 +325,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * int32 total_size = 4; + * + * @return The totalSize. */ public int getTotalSize() { return totalSize_; @@ -602,7 +617,6 @@ public com.google.cloud.securitycenter.v1.GroupFindingsResponse buildPartial() { com.google.cloud.securitycenter.v1.GroupFindingsResponse result = new com.google.cloud.securitycenter.v1.GroupFindingsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -619,7 +633,6 @@ public com.google.cloud.securitycenter.v1.GroupFindingsResponse buildPartial() { } result.nextPageToken_ = nextPageToken_; result.totalSize_ = totalSize_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1149,6 +1162,8 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -1161,6 +1176,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -1320,6 +1337,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -1341,6 +1360,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1362,6 +1383,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 3; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -1381,6 +1405,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 3; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1397,6 +1423,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 3; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1418,6 +1447,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 total_size = 4; + * + * @return The totalSize. */ public int getTotalSize() { return totalSize_; @@ -1430,6 +1461,9 @@ public int getTotalSize() { * * * int32 total_size = 4; + * + * @param value The totalSize to set. + * @return This builder for chaining. */ public Builder setTotalSize(int value) { @@ -1445,6 +1479,8 @@ public Builder setTotalSize(int value) { * * * int32 total_size = 4; + * + * @return This builder for chaining. */ public Builder clearTotalSize() { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java index 0dc1f39e4..0399f830c 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java @@ -93,6 +93,8 @@ public interface GroupFindingsResponseOrBuilder * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -103,6 +105,8 @@ public interface GroupFindingsResponseOrBuilder * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -125,6 +129,8 @@ public interface GroupFindingsResponseOrBuilder * * * string next_page_token = 3; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -136,6 +142,8 @@ public interface GroupFindingsResponseOrBuilder * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); @@ -147,6 +155,8 @@ public interface GroupFindingsResponseOrBuilder * * * int32 total_size = 4; + * + * @return The totalSize. */ int getTotalSize(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java index 71cd36ef6..901dd5004 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java @@ -39,6 +39,12 @@ private GroupResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { private GroupResult() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroupResult(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -129,7 +135,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.cloud.securitycenter.v1.GroupResult.Builder.class); } - private int bitField0_; public static final int PROPERTIES_FIELD_NUMBER = 1; private static final class PropertiesDefaultEntryHolder { @@ -239,6 +244,8 @@ public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { * * * int64 count = 2; + * + * @return The count. */ public long getCount() { return count_; @@ -516,11 +523,9 @@ public com.google.cloud.securitycenter.v1.GroupResult buildPartial() { com.google.cloud.securitycenter.v1.GroupResult result = new com.google.cloud.securitycenter.v1.GroupResult(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); result.count_ = count_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -772,6 +777,8 @@ public Builder putAllProperties( * * * int64 count = 2; + * + * @return The count. */ public long getCount() { return count_; @@ -784,6 +791,9 @@ public long getCount() { * * * int64 count = 2; + * + * @param value The count to set. + * @return This builder for chaining. */ public Builder setCount(long value) { @@ -799,6 +809,8 @@ public Builder setCount(long value) { * * * int64 count = 2; + * + * @return This builder for chaining. */ public Builder clearCount() { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java index 86c6deb49..0b38589de 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java @@ -86,6 +86,8 @@ com.google.protobuf.Value getPropertiesOrDefault( * * * int64 count = 2; + * + * @return The count. */ long getCount(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java index f82b8cc2f..7a1361f72 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java @@ -44,6 +44,12 @@ private ListAssetsRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAssetsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -57,7 +63,6 @@ private ListAssetsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -186,11 +191,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Name of the organization assets should belong to. Its format is
+   * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -207,11 +216,15 @@ public java.lang.String getParent() { * * *
-   * Name of the organization assets should belong to. Its format is
+   * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -251,29 +264,34 @@ public com.google.protobuf.ByteString getParentBytes() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following are the allowed field and operator combinations: - * name | `=` - * update_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | `=`, `>`, `<`, `>=`, `<=` + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', `>`, `<`, `>=`, `<=` - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -310,29 +328,34 @@ public java.lang.String getFilter() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following are the allowed field and operator combinations: - * name | `=` - * update_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | `=`, `>`, `<`, `>=`, `<=` + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', `>`, `<`, `>=`, `<=` - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -364,14 +387,19 @@ public com.google.protobuf.ByteString getFilterBytes() { * name * update_time * resource_properties - * security_marks + * security_marks.marks * security_center_properties.resource_name + * security_center_properties.resource_display_name * security_center_properties.resource_parent + * security_center_properties.resource_parent_display_name * security_center_properties.resource_project + * security_center_properties.resource_project_display_name * security_center_properties.resource_type * * * string order_by = 3; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -400,14 +428,19 @@ public java.lang.String getOrderBy() { * name * update_time * resource_properties - * security_marks + * security_marks.marks * security_center_properties.resource_name + * security_center_properties.resource_display_name * security_center_properties.resource_parent + * security_center_properties.resource_parent_display_name * security_center_properties.resource_project + * security_center_properties.resource_project_display_name * security_center_properties.resource_type * * * string order_by = 3; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -434,6 +467,8 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -449,6 +484,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -498,6 +535,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDuration_ != null; @@ -529,6 +568,8 @@ public boolean hasCompareDuration() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { return compareDuration_ == null @@ -573,13 +614,15 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * *
-   * Optional.
-   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMask_ != null; @@ -588,13 +631,15 @@ public boolean hasFieldMask() { * * *
-   * Optional.
-   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; @@ -603,13 +648,13 @@ public com.google.protobuf.FieldMask getFieldMask() { * * *
-   * Optional.
-   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { return getFieldMask(); @@ -627,6 +672,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * * string page_token = 8; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -649,6 +696,8 @@ public java.lang.String getPageToken() { * * * string page_token = 8; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -673,6 +722,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * int32 page_size = 9; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -1148,11 +1199,15 @@ public Builder mergeFrom( * * *
-     * Name of the organization assets should belong to. Its format is
+     * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -1169,11 +1224,15 @@ public java.lang.String getParent() { * * *
-     * Name of the organization assets should belong to. Its format is
+     * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -1190,11 +1249,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Name of the organization assets should belong to. Its format is
+     * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -1209,11 +1273,15 @@ public Builder setParent(java.lang.String value) { * * *
-     * Name of the organization assets should belong to. Its format is
+     * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -1225,11 +1293,16 @@ public Builder clearParent() { * * *
-     * Name of the organization assets should belong to. Its format is
+     * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1267,29 +1340,34 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following are the allowed field and operator combinations: - * name | `=` - * update_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | `=`, `>`, `<`, `>=`, `<=` + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', `>`, `<`, `>=`, `<=` - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -1326,29 +1404,34 @@ public java.lang.String getFilter() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following are the allowed field and operator combinations: - * name | `=` - * update_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | `=`, `>`, `<`, `>=`, `<=` + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', `>`, `<`, `>=`, `<=` - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -1385,29 +1468,35 @@ public com.google.protobuf.ByteString getFilterBytes() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following are the allowed field and operator combinations: - * name | `=` - * update_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | `=`, `>`, `<`, `>=`, `<=` + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', `>`, `<`, `>=`, `<=` - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. */ public Builder setFilter(java.lang.String value) { if (value == null) { @@ -1442,29 +1531,34 @@ public Builder setFilter(java.lang.String value) { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following are the allowed field and operator combinations: - * name | `=` - * update_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | `=`, `>`, `<`, `>=`, `<=` + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', `>`, `<`, `>=`, `<=` - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return This builder for chaining. */ public Builder clearFilter() { @@ -1496,29 +1590,35 @@ public Builder clearFilter() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following are the allowed field and operator combinations: - * name | `=` - * update_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | `=`, `>`, `<`, `>=`, `<=` + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', `>`, `<`, `>=`, `<=` - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1548,14 +1648,19 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * name * update_time * resource_properties - * security_marks + * security_marks.marks * security_center_properties.resource_name + * security_center_properties.resource_display_name * security_center_properties.resource_parent + * security_center_properties.resource_parent_display_name * security_center_properties.resource_project + * security_center_properties.resource_project_display_name * security_center_properties.resource_type * * * string order_by = 3; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -1584,14 +1689,19 @@ public java.lang.String getOrderBy() { * name * update_time * resource_properties - * security_marks + * security_marks.marks * security_center_properties.resource_name + * security_center_properties.resource_display_name * security_center_properties.resource_parent + * security_center_properties.resource_parent_display_name * security_center_properties.resource_project + * security_center_properties.resource_project_display_name * security_center_properties.resource_type * * * string order_by = 3; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -1620,14 +1730,20 @@ public com.google.protobuf.ByteString getOrderByBytes() { * name * update_time * resource_properties - * security_marks + * security_marks.marks * security_center_properties.resource_name + * security_center_properties.resource_display_name * security_center_properties.resource_parent + * security_center_properties.resource_parent_display_name * security_center_properties.resource_project + * security_center_properties.resource_project_display_name * security_center_properties.resource_type * * * string order_by = 3; + * + * @param value The orderBy to set. + * @return This builder for chaining. */ public Builder setOrderBy(java.lang.String value) { if (value == null) { @@ -1654,14 +1770,19 @@ public Builder setOrderBy(java.lang.String value) { * name * update_time * resource_properties - * security_marks + * security_marks.marks * security_center_properties.resource_name + * security_center_properties.resource_display_name * security_center_properties.resource_parent + * security_center_properties.resource_parent_display_name * security_center_properties.resource_project + * security_center_properties.resource_project_display_name * security_center_properties.resource_type * * * string order_by = 3; + * + * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1685,14 +1806,20 @@ public Builder clearOrderBy() { * name * update_time * resource_properties - * security_marks + * security_marks.marks * security_center_properties.resource_name + * security_center_properties.resource_display_name * security_center_properties.resource_parent + * security_center_properties.resource_parent_display_name * security_center_properties.resource_project + * security_center_properties.resource_project_display_name * security_center_properties.resource_type * * * string order_by = 3; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. */ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1722,6 +1849,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -1737,6 +1866,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -1940,6 +2071,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; @@ -1971,6 +2104,8 @@ public boolean hasCompareDuration() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { @@ -2269,13 +2404,15 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; @@ -2284,13 +2421,15 @@ public boolean hasFieldMask() { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { if (fieldMaskBuilder_ == null) { @@ -2303,13 +2442,13 @@ public com.google.protobuf.FieldMask getFieldMask() { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { @@ -2328,13 +2467,13 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { @@ -2350,13 +2489,13 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { @@ -2377,13 +2516,13 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearFieldMask() { if (fieldMaskBuilder_ == null) { @@ -2400,13 +2539,13 @@ public Builder clearFieldMask() { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { @@ -2417,13 +2556,13 @@ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { @@ -2436,13 +2575,13 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -2472,6 +2611,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * * string page_token = 8; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -2494,6 +2635,8 @@ public java.lang.String getPageToken() { * * * string page_token = 8; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -2516,6 +2659,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 8; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -2536,6 +2682,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 8; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -2553,6 +2701,9 @@ public Builder clearPageToken() { * * * string page_token = 8; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2575,6 +2726,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 9; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -2588,6 +2741,9 @@ public int getPageSize() { * * * int32 page_size = 9; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -2604,6 +2760,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 9; + * + * @return This builder for chaining. */ public Builder clearPageSize() { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java index 1964d6d08..eae2ae95f 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface ListAssetsRequestOrBuilder * * *
-   * Name of the organization assets should belong to. Its format is
+   * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Name of the organization assets should belong to. Its format is
+   * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -70,29 +78,34 @@ public interface ListAssetsRequestOrBuilder * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following are the allowed field and operator combinations: - * name | `=` - * update_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | `=`, `>`, `<`, `>=`, `<=` + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', `>`, `<`, `>=`, `<=` - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The filter. */ java.lang.String getFilter(); /** @@ -119,29 +132,34 @@ public interface ListAssetsRequestOrBuilder * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following are the allowed field and operator combinations: - * name | `=` - * update_time | `=`, `>`, `<`, `>=`, `<=` + * * name: `=` + * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "update_time = \"2019-06-10T16:07:18-07:00\"" * "update_time = 1560208038000" - * create_time | `=`, `>`, `<`, `>=`, `<=` + * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "create_time = \"2019-06-10T16:07:18-07:00\"" * "create_time = 1560208038000" - * iam_policy.policy_blob | '=', ':' - * resource_properties | '=', ':', `>`, `<`, `>=`, `<=` - * security_marks | '=', ':' - * security_center_properties.resource_name | '=', ':' - * security_center_properties.resource_type | '=', ':' - * security_center_properties.resource_parent | '=', ':' - * security_center_properties.resource_project | '=', ':' - * security_center_properties.resource_owners | '=', ':' + * * iam_policy.policy_blob: `=`, `:` + * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + * * security_marks.marks: `=`, `:` + * * security_center_properties.resource_name: `=`, `:` + * * security_center_properties.resource_display_name: `=`, `:` + * * security_center_properties.resource_type: `=`, `:` + * * security_center_properties.resource_parent: `=`, `:` + * * security_center_properties.resource_parent_display_name: `=`, `:` + * * security_center_properties.resource_project: `=`, `:` + * * security_center_properties.resource_project_display_name: `=`, `:` + * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); @@ -161,14 +179,19 @@ public interface ListAssetsRequestOrBuilder * name * update_time * resource_properties - * security_marks + * security_marks.marks * security_center_properties.resource_name + * security_center_properties.resource_display_name * security_center_properties.resource_parent + * security_center_properties.resource_parent_display_name * security_center_properties.resource_project + * security_center_properties.resource_project_display_name * security_center_properties.resource_type * * * string order_by = 3; + * + * @return The orderBy. */ java.lang.String getOrderBy(); /** @@ -187,14 +210,19 @@ public interface ListAssetsRequestOrBuilder * name * update_time * resource_properties - * security_marks + * security_marks.marks * security_center_properties.resource_name + * security_center_properties.resource_display_name * security_center_properties.resource_parent + * security_center_properties.resource_parent_display_name * security_center_properties.resource_project + * security_center_properties.resource_project_display_name * security_center_properties.resource_type * * * string order_by = 3; + * + * @return The bytes for orderBy. */ com.google.protobuf.ByteString getOrderByBytes(); @@ -209,6 +237,8 @@ public interface ListAssetsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -222,6 +252,8 @@ public interface ListAssetsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -265,6 +297,8 @@ public interface ListAssetsRequestOrBuilder * * * .google.protobuf.Duration compare_duration = 5; + * + * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** @@ -294,6 +328,8 @@ public interface ListAssetsRequestOrBuilder * * * .google.protobuf.Duration compare_duration = 5; + * + * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** @@ -330,39 +366,43 @@ public interface ListAssetsRequestOrBuilder * * *
-   * Optional.
-   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** * * *
-   * Optional.
-   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** * * *
-   * Optional.
-   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); @@ -376,6 +416,8 @@ public interface ListAssetsRequestOrBuilder * * * string page_token = 8; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -388,6 +430,8 @@ public interface ListAssetsRequestOrBuilder * * * string page_token = 8; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); @@ -400,6 +444,8 @@ public interface ListAssetsRequestOrBuilder * * * int32 page_size = 9; + * + * @return The pageSize. */ int getPageSize(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java index ee988e7ff..acf26944c 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java @@ -42,6 +42,12 @@ private ListAssetsResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAssetsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -158,6 +164,8 @@ public interface ListAssetsResultOrBuilder * * * .google.cloud.securitycenter.v1.Asset asset = 1; + * + * @return Whether the asset field is set. */ boolean hasAsset(); /** @@ -168,6 +176,8 @@ public interface ListAssetsResultOrBuilder * * * .google.cloud.securitycenter.v1.Asset asset = 1; + * + * @return The asset. */ com.google.cloud.securitycenter.v1.Asset getAsset(); /** @@ -191,6 +201,8 @@ public interface ListAssetsResultOrBuilder * * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * + * + * @return The enum numeric value on the wire for stateChange. */ int getStateChangeValue(); /** @@ -203,6 +215,8 @@ public interface ListAssetsResultOrBuilder * * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * + * + * @return The stateChange. */ com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange(); @@ -230,6 +244,12 @@ private ListAssetsResult() { stateChange_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAssetsResult(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -243,7 +263,6 @@ private ListAssetsResult( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -418,12 +437,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @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 StateChange 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 StateChange forNumber(int value) { switch (value) { case 0: @@ -496,6 +523,8 @@ private StateChange(int value) { * * * .google.cloud.securitycenter.v1.Asset asset = 1; + * + * @return Whether the asset field is set. */ public boolean hasAsset() { return asset_ != null; @@ -508,6 +537,8 @@ public boolean hasAsset() { * * * .google.cloud.securitycenter.v1.Asset asset = 1; + * + * @return The asset. */ public com.google.cloud.securitycenter.v1.Asset getAsset() { return asset_ == null @@ -539,6 +570,8 @@ public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() { * * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * + * + * @return The enum numeric value on the wire for stateChange. */ public int getStateChangeValue() { return stateChange_; @@ -553,6 +586,8 @@ public int getStateChangeValue() { * * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * + * + * @return The stateChange. */ public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange() { @@ -948,6 +983,8 @@ public Builder mergeFrom( * * * .google.cloud.securitycenter.v1.Asset asset = 1; + * + * @return Whether the asset field is set. */ public boolean hasAsset() { return assetBuilder_ != null || asset_ != null; @@ -960,6 +997,8 @@ public boolean hasAsset() { * * * .google.cloud.securitycenter.v1.Asset asset = 1; + * + * @return The asset. */ public com.google.cloud.securitycenter.v1.Asset getAsset() { if (assetBuilder_ == null) { @@ -1126,6 +1165,8 @@ public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() { * * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * + * + * @return The enum numeric value on the wire for stateChange. */ public int getStateChangeValue() { return stateChange_; @@ -1140,6 +1181,9 @@ public int getStateChangeValue() { * * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * + * + * @param value The enum numeric value on the wire for stateChange to set. + * @return This builder for chaining. */ public Builder setStateChangeValue(int value) { stateChange_ = value; @@ -1156,6 +1200,8 @@ public Builder setStateChangeValue(int value) { * * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * + * + * @return The stateChange. */ public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange() { @@ -1178,6 +1224,9 @@ public Builder setStateChangeValue(int value) { * * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * + * + * @param value The stateChange to set. + * @return This builder for chaining. */ public Builder setStateChange( com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange @@ -1200,6 +1249,8 @@ public Builder setStateChange( * * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * + * + * @return This builder for chaining. */ public Builder clearStateChange() { @@ -1264,7 +1315,6 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; public static final int LIST_ASSETS_RESULTS_FIELD_NUMBER = 1; private java.util.List listAssetsResults_; @@ -1354,6 +1404,8 @@ public int getListAssetsResultsCount() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -1366,6 +1418,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -1394,6 +1448,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -1415,6 +1471,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1438,6 +1496,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * int32 total_size = 4; + * + * @return The totalSize. */ public int getTotalSize() { return totalSize_; @@ -1729,7 +1789,6 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse buildPartial() { com.google.cloud.securitycenter.v1.ListAssetsResponse result = new com.google.cloud.securitycenter.v1.ListAssetsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (listAssetsResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = java.util.Collections.unmodifiableList(listAssetsResults_); @@ -1746,7 +1805,6 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse buildPartial() { } result.nextPageToken_ = nextPageToken_; result.totalSize_ = totalSize_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -2296,6 +2354,8 @@ public Builder removeListAssetsResults(int index) { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -2308,6 +2368,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -2467,6 +2529,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -2488,6 +2552,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -2509,6 +2575,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 3; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -2528,6 +2597,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 3; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -2544,6 +2615,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 3; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2565,6 +2639,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 total_size = 4; + * + * @return The totalSize. */ public int getTotalSize() { return totalSize_; @@ -2577,6 +2653,9 @@ public int getTotalSize() { * * * int32 total_size = 4; + * + * @param value The totalSize to set. + * @return This builder for chaining. */ public Builder setTotalSize(int value) { @@ -2592,6 +2671,8 @@ public Builder setTotalSize(int value) { * * * int32 total_size = 4; + * + * @return This builder for chaining. */ public Builder clearTotalSize() { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java index 4ea182bae..3a965bd11 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java @@ -97,6 +97,8 @@ com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAs * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -107,6 +109,8 @@ com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAs * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -129,6 +133,8 @@ com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAs * * * string next_page_token = 3; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -140,6 +146,8 @@ com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAs * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); @@ -151,6 +159,8 @@ com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAs * * * int32 total_size = 4; + * + * @return The totalSize. */ int getTotalSize(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java index e342adfac..7744aac0e 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java @@ -44,6 +44,12 @@ private ListFindingsRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFindingsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -57,7 +63,6 @@ private ListFindingsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -186,13 +191,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Name of the source the findings belong to. Its format is
+   * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
    * sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -209,13 +218,17 @@ public java.lang.String getParent() { * * *
-   * Name of the source the findings belong to. Its format is
+   * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
    * sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -253,23 +266,25 @@ public com.google.protobuf.ByteString getParentBytes() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * name: `=` + * parent: `=`, `:` + * resource_name: `=`, `:` + * state: `=`, `:` + * category: `=`, `:` + * external_uri: `=`, `:` + * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * security_marks.marks: `=`, `:` + * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -304,23 +319,25 @@ public java.lang.String getFilter() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * name: `=` + * parent: `=`, `:` + * resource_name: `=`, `:` + * state: `=`, `:` + * category: `=`, `:` + * external_uri: `=`, `:` + * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * security_marks.marks: `=`, `:` + * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -356,10 +373,12 @@ public com.google.protobuf.ByteString getFilterBytes() { * resource_name * event_time * source_properties - * security_marks + * security_marks.marks * * * string order_by = 3; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -392,10 +411,12 @@ public java.lang.String getOrderBy() { * resource_name * event_time * source_properties - * security_marks + * security_marks.marks * * * string order_by = 3; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -422,6 +443,8 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -437,6 +460,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -486,6 +511,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDuration_ != null; @@ -517,6 +544,8 @@ public boolean hasCompareDuration() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { return compareDuration_ == null @@ -561,12 +590,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * *
-   * Optional.
-   * A field mask to specify the Finding fields to be listed in the response.
+   * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMask_ != null; @@ -575,12 +606,14 @@ public boolean hasFieldMask() { * * *
-   * Optional.
-   * A field mask to specify the Finding fields to be listed in the response.
+   * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; @@ -589,12 +622,12 @@ public com.google.protobuf.FieldMask getFieldMask() { * * *
-   * Optional.
-   * A field mask to specify the Finding fields to be listed in the response.
+   * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { return getFieldMask(); @@ -612,6 +645,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * * string page_token = 8; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -634,6 +669,8 @@ public java.lang.String getPageToken() { * * * string page_token = 8; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -658,6 +695,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * int32 page_size = 9; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -1134,13 +1173,17 @@ public Builder mergeFrom( * * *
-     * Name of the source the findings belong to. Its format is
+     * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
      * sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -1157,13 +1200,17 @@ public java.lang.String getParent() { * * *
-     * Name of the source the findings belong to. Its format is
+     * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
      * sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -1180,13 +1227,18 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Name of the source the findings belong to. Its format is
+     * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
      * sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -1201,13 +1253,17 @@ public Builder setParent(java.lang.String value) { * * *
-     * Name of the source the findings belong to. Its format is
+     * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
      * sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -1219,13 +1275,18 @@ public Builder clearParent() { * * *
-     * Name of the source the findings belong to. Its format is
+     * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
      * sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1261,23 +1322,25 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * name: `=` + * parent: `=`, `:` + * resource_name: `=`, `:` + * state: `=`, `:` + * category: `=`, `:` + * external_uri: `=`, `:` + * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * security_marks.marks: `=`, `:` + * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -1312,23 +1375,25 @@ public java.lang.String getFilter() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * name: `=` + * parent: `=`, `:` + * resource_name: `=`, `:` + * state: `=`, `:` + * category: `=`, `:` + * external_uri: `=`, `:` + * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * security_marks.marks: `=`, `:` + * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -1363,23 +1428,26 @@ public com.google.protobuf.ByteString getFilterBytes() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * name: `=` + * parent: `=`, `:` + * resource_name: `=`, `:` + * state: `=`, `:` + * category: `=`, `:` + * external_uri: `=`, `:` + * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * security_marks.marks: `=`, `:` + * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. */ public Builder setFilter(java.lang.String value) { if (value == null) { @@ -1412,23 +1480,25 @@ public Builder setFilter(java.lang.String value) { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * name: `=` + * parent: `=`, `:` + * resource_name: `=`, `:` + * state: `=`, `:` + * category: `=`, `:` + * external_uri: `=`, `:` + * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * security_marks.marks: `=`, `:` + * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return This builder for chaining. */ public Builder clearFilter() { @@ -1458,23 +1528,26 @@ public Builder clearFilter() { * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * name: `=` + * parent: `=`, `:` + * resource_name: `=`, `:` + * state: `=`, `:` + * category: `=`, `:` + * external_uri: `=`, `:` + * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * security_marks.marks: `=`, `:` + * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1508,10 +1581,12 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * resource_name * event_time * source_properties - * security_marks + * security_marks.marks * * * string order_by = 3; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -1544,10 +1619,12 @@ public java.lang.String getOrderBy() { * resource_name * event_time * source_properties - * security_marks + * security_marks.marks * * * string order_by = 3; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -1580,10 +1657,13 @@ public com.google.protobuf.ByteString getOrderByBytes() { * resource_name * event_time * source_properties - * security_marks + * security_marks.marks * * * string order_by = 3; + * + * @param value The orderBy to set. + * @return This builder for chaining. */ public Builder setOrderBy(java.lang.String value) { if (value == null) { @@ -1614,10 +1694,12 @@ public Builder setOrderBy(java.lang.String value) { * resource_name * event_time * source_properties - * security_marks + * security_marks.marks * * * string order_by = 3; + * + * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1645,10 +1727,13 @@ public Builder clearOrderBy() { * resource_name * event_time * source_properties - * security_marks + * security_marks.marks * * * string order_by = 3; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. */ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1678,6 +1763,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -1693,6 +1780,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -1896,6 +1985,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; @@ -1927,6 +2018,8 @@ public boolean hasCompareDuration() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { @@ -2225,12 +2318,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; @@ -2239,12 +2334,14 @@ public boolean hasFieldMask() { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { if (fieldMaskBuilder_ == null) { @@ -2257,12 +2354,12 @@ public com.google.protobuf.FieldMask getFieldMask() { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { @@ -2281,12 +2378,12 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { @@ -2302,12 +2399,12 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { @@ -2328,12 +2425,12 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearFieldMask() { if (fieldMaskBuilder_ == null) { @@ -2350,12 +2447,12 @@ public Builder clearFieldMask() { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { @@ -2366,12 +2463,12 @@ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { @@ -2384,12 +2481,12 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -2419,6 +2516,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * * string page_token = 8; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -2441,6 +2540,8 @@ public java.lang.String getPageToken() { * * * string page_token = 8; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -2463,6 +2564,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 8; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -2483,6 +2587,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 8; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -2500,6 +2606,9 @@ public Builder clearPageToken() { * * * string page_token = 8; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2522,6 +2631,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 9; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -2535,6 +2646,9 @@ public int getPageSize() { * * * int32 page_size = 9; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -2551,6 +2665,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 9; + * + * @return This builder for chaining. */ public Builder clearPageSize() { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java index c0708cb30..17a3d445a 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java @@ -27,26 +27,34 @@ public interface ListFindingsRequestOrBuilder * * *
-   * Name of the source the findings belong to. Its format is
+   * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
    * sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Name of the source the findings belong to. Its format is
+   * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
    * sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -72,23 +80,25 @@ public interface ListFindingsRequestOrBuilder * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * name: `=` + * parent: `=`, `:` + * resource_name: `=`, `:` + * state: `=`, `:` + * category: `=`, `:` + * external_uri: `=`, `:` + * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * security_marks.marks: `=`, `:` + * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The filter. */ java.lang.String getFilter(); /** @@ -113,23 +123,25 @@ public interface ListFindingsRequestOrBuilder * * integer literals without quotes. * * boolean literals `true` and `false` without quotes. * The following field and operator combinations are supported: - * name | `=` - * parent | '=', ':' - * resource_name | '=', ':' - * state | '=', ':' - * category | '=', ':' - * external_uri | '=', ':' - * event_time | `=`, `>`, `<`, `>=`, `<=` + * name: `=` + * parent: `=`, `:` + * resource_name: `=`, `:` + * state: `=`, `:` + * category: `=`, `:` + * external_uri: `=`, `:` + * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: * "event_time = \"2019-06-10T16:07:18-07:00\"" * "event_time = 1560208038000" - * security_marks | '=', ':' - * source_properties | '=', ':', `>`, `<`, `>=`, `<=` + * security_marks.marks: `=`, `:` + * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. * * * string filter = 2; + * + * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); @@ -153,10 +165,12 @@ public interface ListFindingsRequestOrBuilder * resource_name * event_time * source_properties - * security_marks + * security_marks.marks * * * string order_by = 3; + * + * @return The orderBy. */ java.lang.String getOrderBy(); /** @@ -179,10 +193,12 @@ public interface ListFindingsRequestOrBuilder * resource_name * event_time * source_properties - * security_marks + * security_marks.marks * * * string order_by = 3; + * + * @return The bytes for orderBy. */ com.google.protobuf.ByteString getOrderByBytes(); @@ -197,6 +213,8 @@ public interface ListFindingsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -210,6 +228,8 @@ public interface ListFindingsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -253,6 +273,8 @@ public interface ListFindingsRequestOrBuilder * * * .google.protobuf.Duration compare_duration = 5; + * + * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** @@ -282,6 +304,8 @@ public interface ListFindingsRequestOrBuilder * * * .google.protobuf.Duration compare_duration = 5; + * + * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** @@ -318,36 +342,40 @@ public interface ListFindingsRequestOrBuilder * * *
-   * Optional.
-   * A field mask to specify the Finding fields to be listed in the response.
+   * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** * * *
-   * Optional.
-   * A field mask to specify the Finding fields to be listed in the response.
+   * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** * * *
-   * Optional.
-   * A field mask to specify the Finding fields to be listed in the response.
+   * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); @@ -361,6 +389,8 @@ public interface ListFindingsRequestOrBuilder * * * string page_token = 8; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -373,6 +403,8 @@ public interface ListFindingsRequestOrBuilder * * * string page_token = 8; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); @@ -385,6 +417,8 @@ public interface ListFindingsRequestOrBuilder * * * int32 page_size = 9; + * + * @return The pageSize. */ int getPageSize(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java index 846e1155e..5138b0d4d 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java @@ -42,6 +42,12 @@ private ListFindingsResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFindingsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -159,6 +165,8 @@ public interface ListFindingsResultOrBuilder * * * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * @return Whether the finding field is set. */ boolean hasFinding(); /** @@ -169,6 +177,8 @@ public interface ListFindingsResultOrBuilder * * * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * @return The finding. */ com.google.cloud.securitycenter.v1.Finding getFinding(); /** @@ -192,6 +202,8 @@ public interface ListFindingsResultOrBuilder * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * + * + * @return The enum numeric value on the wire for stateChange. */ int getStateChangeValue(); /** @@ -204,9 +216,54 @@ public interface ListFindingsResultOrBuilder * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * + * + * @return The stateChange. */ com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange(); + + /** + * + * + *
+     * Output only. Resource that is associated with this finding.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; + * + * + * @return Whether the resource field is set. + */ + boolean hasResource(); + /** + * + * + *
+     * Output only. Resource that is associated with this finding.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; + * + * + * @return The resource. + */ + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + getResource(); + /** + * + * + *
+     * Output only. Resource that is associated with this finding.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; + * + */ + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder + getResourceOrBuilder(); } /** * @@ -231,6 +288,12 @@ private ListFindingsResult() { stateChange_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFindingsResult(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -244,7 +307,6 @@ private ListFindingsResult( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -276,6 +338,26 @@ private ListFindingsResult( int rawValue = input.readEnum(); stateChange_ = rawValue; + break; + } + case 26: + { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .Builder + subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } + break; } default: @@ -448,12 +530,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @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 StateChange 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 StateChange forNumber(int value) { switch (value) { case 0: @@ -469,53 +559,1581 @@ public static StateChange forNumber(int value) { 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 StateChange findValueByNumber(int number) { + return StateChange.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final StateChange[] VALUES = values(); + + public static StateChange 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 StateChange(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange) + } + + public interface ResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The full resource name of the resource. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+       * The full resource name of the resource. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+       * The full resource name of project that the resource belongs to.
+       * 
+ * + * string project_name = 2; + * + * @return The projectName. + */ + java.lang.String getProjectName(); + /** + * + * + *
+       * The full resource name of project that the resource belongs to.
+       * 
+ * + * string project_name = 2; + * + * @return The bytes for projectName. + */ + com.google.protobuf.ByteString getProjectNameBytes(); + + /** + * + * + *
+       * The human readable name of project that the resource belongs to.
+       * 
+ * + * string project_display_name = 3; + * + * @return The projectDisplayName. + */ + java.lang.String getProjectDisplayName(); + /** + * + * + *
+       * The human readable name of project that the resource belongs to.
+       * 
+ * + * string project_display_name = 3; + * + * @return The bytes for projectDisplayName. + */ + com.google.protobuf.ByteString getProjectDisplayNameBytes(); + + /** + * + * + *
+       * The full resource name of resource's parent.
+       * 
+ * + * string parent_name = 4; + * + * @return The parentName. + */ + java.lang.String getParentName(); + /** + * + * + *
+       * The full resource name of resource's parent.
+       * 
+ * + * string parent_name = 4; + * + * @return The bytes for parentName. + */ + com.google.protobuf.ByteString getParentNameBytes(); + + /** + * + * + *
+       * The human readable name of resource's parent.
+       * 
+ * + * string parent_display_name = 5; + * + * @return The parentDisplayName. + */ + java.lang.String getParentDisplayName(); + /** + * + * + *
+       * The human readable name of resource's parent.
+       * 
+ * + * string parent_display_name = 5; + * + * @return The bytes for parentDisplayName. + */ + com.google.protobuf.ByteString getParentDisplayNameBytes(); + } + /** + * + * + *
+     * Information related to the Google Cloud Platform (GCP) resource that is
+     * associated with this finding.
+     * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource} + */ + public static final class Resource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) + ResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Resource.newBuilder() to construct. + private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Resource() { + name_ = ""; + projectName_ = ""; + projectDisplayName_ = ""; + parentName_ = ""; + parentDisplayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Resource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Resource( + 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(); + + projectName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectDisplayName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + parentName_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + parentDisplayName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .class, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+       * The full resource name of the resource. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+       * The full resource name of the resource. See:
+       * https://cloud.google.com/apis/design/resource_names#full_resource_name
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object projectName_; + /** + * + * + *
+       * The full resource name of project that the resource belongs to.
+       * 
+ * + * string project_name = 2; + * + * @return The projectName. + */ + public java.lang.String getProjectName() { + java.lang.Object ref = projectName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectName_ = s; + return s; + } + } + /** + * + * + *
+       * The full resource name of project that the resource belongs to.
+       * 
+ * + * string project_name = 2; + * + * @return The bytes for projectName. + */ + public com.google.protobuf.ByteString getProjectNameBytes() { + java.lang.Object ref = projectName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_DISPLAY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object projectDisplayName_; + /** + * + * + *
+       * The human readable name of project that the resource belongs to.
+       * 
+ * + * string project_display_name = 3; + * + * @return The projectDisplayName. + */ + public java.lang.String getProjectDisplayName() { + java.lang.Object ref = projectDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectDisplayName_ = s; + return s; + } + } + /** + * + * + *
+       * The human readable name of project that the resource belongs to.
+       * 
+ * + * string project_display_name = 3; + * + * @return The bytes for projectDisplayName. + */ + public com.google.protobuf.ByteString getProjectDisplayNameBytes() { + java.lang.Object ref = projectDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object parentName_; + /** + * + * + *
+       * The full resource name of resource's parent.
+       * 
+ * + * string parent_name = 4; + * + * @return The parentName. + */ + public java.lang.String getParentName() { + java.lang.Object ref = parentName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentName_ = s; + return s; + } + } + /** + * + * + *
+       * The full resource name of resource's parent.
+       * 
+ * + * string parent_name = 4; + * + * @return The bytes for parentName. + */ + public com.google.protobuf.ByteString getParentNameBytes() { + java.lang.Object ref = parentName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_DISPLAY_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object parentDisplayName_; + /** + * + * + *
+       * The human readable name of resource's parent.
+       * 
+ * + * string parent_display_name = 5; + * + * @return The parentDisplayName. + */ + public java.lang.String getParentDisplayName() { + java.lang.Object ref = parentDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentDisplayName_ = s; + return s; + } + } + /** + * + * + *
+       * The human readable name of resource's parent.
+       * 
+ * + * string parent_display_name = 5; + * + * @return The bytes for parentDisplayName. + */ + public com.google.protobuf.ByteString getParentDisplayNameBytes() { + java.lang.Object ref = parentDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getProjectNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectName_); + } + if (!getProjectDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, projectDisplayName_); + } + if (!getParentNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parentName_); + } + if (!getParentDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parentDisplayName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getProjectNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectName_); + } + if (!getProjectDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, projectDisplayName_); + } + if (!getParentNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parentName_); + } + if (!getParentDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parentDisplayName_); + } + size += unknownFields.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.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource other = + (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) + obj; + + if (!getName().equals(other.getName())) return false; + if (!getProjectName().equals(other.getProjectName())) return false; + if (!getProjectDisplayName().equals(other.getProjectDisplayName())) return false; + if (!getParentName().equals(other.getParentName())) return false; + if (!getParentDisplayName().equals(other.getParentDisplayName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PROJECT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getProjectName().hashCode(); + hash = (37 * hash) + PROJECT_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getProjectDisplayName().hashCode(); + hash = (37 * hash) + PARENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getParentName().hashCode(); + hash = (37 * hash) + PARENT_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getParentDisplayName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource + 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.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource + 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.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource + 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.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource + 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.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource + 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.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + 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 related to the Google Cloud Platform (GCP) resource that is
+       * associated with this finding.
+       * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource.class, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource.Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + 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(); + name_ = ""; + + projectName_ = ""; + + projectDisplayName_ = ""; + + parentName_ = ""; + + parentDisplayName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + build() { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + buildPartial() { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + result = + new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource(this); + result.name_ = name_; + result.projectName_ = projectName_; + result.projectDisplayName_ = projectDisplayName_; + result.parentName_ = parentName_; + result.parentDisplayName_ = parentDisplayName_; + 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.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + other) { + if (other + == com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getProjectName().isEmpty()) { + projectName_ = other.projectName_; + onChanged(); + } + if (!other.getProjectDisplayName().isEmpty()) { + projectDisplayName_ = other.projectDisplayName_; + onChanged(); + } + if (!other.getParentName().isEmpty()) { + parentName_ = other.parentName_; + onChanged(); + } + if (!other.getParentDisplayName().isEmpty()) { + parentDisplayName_ = other.parentDisplayName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+         * The full resource name of the resource. See:
+         * https://cloud.google.com/apis/design/resource_names#full_resource_name
+         * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The full resource name of the resource. See:
+         * https://cloud.google.com/apis/design/resource_names#full_resource_name
+         * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The full resource name of the resource. See:
+         * https://cloud.google.com/apis/design/resource_names#full_resource_name
+         * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The full resource name of the resource. See:
+         * https://cloud.google.com/apis/design/resource_names#full_resource_name
+         * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+         * The full resource name of the resource. See:
+         * https://cloud.google.com/apis/design/resource_names#full_resource_name
+         * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object projectName_ = ""; + /** + * + * + *
+         * The full resource name of project that the resource belongs to.
+         * 
+ * + * string project_name = 2; + * + * @return The projectName. + */ + public java.lang.String getProjectName() { + java.lang.Object ref = projectName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The full resource name of project that the resource belongs to.
+         * 
+ * + * string project_name = 2; + * + * @return The bytes for projectName. + */ + public com.google.protobuf.ByteString getProjectNameBytes() { + java.lang.Object ref = projectName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The full resource name of project that the resource belongs to.
+         * 
+ * + * string project_name = 2; + * + * @param value The projectName to set. + * @return This builder for chaining. + */ + public Builder setProjectName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The full resource name of project that the resource belongs to.
+         * 
+ * + * string project_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearProjectName() { + + projectName_ = getDefaultInstance().getProjectName(); + onChanged(); + return this; + } + /** + * + * + *
+         * The full resource name of project that the resource belongs to.
+         * 
+ * + * string project_name = 2; + * + * @param value The bytes for projectName to set. + * @return This builder for chaining. + */ + public Builder setProjectNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectName_ = value; + onChanged(); + return this; + } + + private java.lang.Object projectDisplayName_ = ""; + /** + * + * + *
+         * The human readable name of project that the resource belongs to.
+         * 
+ * + * string project_display_name = 3; + * + * @return The projectDisplayName. + */ + public java.lang.String getProjectDisplayName() { + java.lang.Object ref = projectDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The human readable name of project that the resource belongs to.
+         * 
+ * + * string project_display_name = 3; + * + * @return The bytes for projectDisplayName. + */ + public com.google.protobuf.ByteString getProjectDisplayNameBytes() { + java.lang.Object ref = projectDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The human readable name of project that the resource belongs to.
+         * 
+ * + * string project_display_name = 3; + * + * @param value The projectDisplayName to set. + * @return This builder for chaining. + */ + public Builder setProjectDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The human readable name of project that the resource belongs to.
+         * 
+ * + * string project_display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearProjectDisplayName() { + + projectDisplayName_ = getDefaultInstance().getProjectDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+         * The human readable name of project that the resource belongs to.
+         * 
+ * + * string project_display_name = 3; + * + * @param value The bytes for projectDisplayName to set. + * @return This builder for chaining. + */ + public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectDisplayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object parentName_ = ""; + /** + * + * + *
+         * The full resource name of resource's parent.
+         * 
+ * + * string parent_name = 4; + * + * @return The parentName. + */ + public java.lang.String getParentName() { + java.lang.Object ref = parentName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The full resource name of resource's parent.
+         * 
+ * + * string parent_name = 4; + * + * @return The bytes for parentName. + */ + public com.google.protobuf.ByteString getParentNameBytes() { + java.lang.Object ref = parentName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The full resource name of resource's parent.
+         * 
+ * + * string parent_name = 4; + * + * @param value The parentName to set. + * @return This builder for chaining. + */ + public Builder setParentName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parentName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The full resource name of resource's parent.
+         * 
+ * + * string parent_name = 4; + * + * @return This builder for chaining. + */ + public Builder clearParentName() { + + parentName_ = getDefaultInstance().getParentName(); + onChanged(); + return this; + } + /** + * + * + *
+         * The full resource name of resource's parent.
+         * 
+ * + * string parent_name = 4; + * + * @param value The bytes for parentName to set. + * @return This builder for chaining. + */ + public Builder setParentNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parentName_ = value; + onChanged(); + return this; + } + + private java.lang.Object parentDisplayName_ = ""; + /** + * + * + *
+         * The human readable name of resource's parent.
+         * 
+ * + * string parent_display_name = 5; + * + * @return The parentDisplayName. + */ + public java.lang.String getParentDisplayName() { + java.lang.Object ref = parentDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The human readable name of resource's parent.
+         * 
+ * + * string parent_display_name = 5; + * + * @return The bytes for parentDisplayName. + */ + public com.google.protobuf.ByteString getParentDisplayNameBytes() { + java.lang.Object ref = parentDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The human readable name of resource's parent.
+         * 
+ * + * string parent_display_name = 5; + * + * @param value The parentDisplayName to set. + * @return This builder for chaining. + */ + public Builder setParentDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parentDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The human readable name of resource's parent.
+         * 
+ * + * string parent_display_name = 5; + * + * @return This builder for chaining. + */ + public Builder clearParentDisplayName() { + + parentDisplayName_ = getDefaultInstance().getParentDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+         * The human readable name of resource's parent.
+         * 
+ * + * string parent_display_name = 5; + * + * @param value The bytes for parentDisplayName to set. + * @return This builder for chaining. + */ + public Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } + parentDisplayName_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StateChange findValueByNumber(int number) { - return StateChange.forNumber(number); - } - }; + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) + private static final com.google.cloud.securitycenter.v1.ListFindingsResponse + .ListFindingsResult.Resource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .getDescriptor() - .getEnumTypes() - .get(0); + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource + getDefaultInstance() { + return DEFAULT_INSTANCE; } - private static final StateChange[] VALUES = values(); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Resource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Resource(input, extensionRegistry); + } + }; - public static StateChange 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()]; + public static com.google.protobuf.Parser parser() { + return PARSER; } - private final int value; - - private StateChange(int value) { - this.value = value; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange) + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } public static final int FINDING_FIELD_NUMBER = 1; @@ -528,6 +2146,8 @@ private StateChange(int value) { * * * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * @return Whether the finding field is set. */ public boolean hasFinding() { return finding_ != null; @@ -540,6 +2160,8 @@ public boolean hasFinding() { * * * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * @return The finding. */ public com.google.cloud.securitycenter.v1.Finding getFinding() { return finding_ == null @@ -571,6 +2193,8 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * + * + * @return The enum numeric value on the wire for stateChange. */ public int getStateChangeValue() { return stateChange_; @@ -585,6 +2209,8 @@ public int getStateChangeValue() { * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * + * + * @return The stateChange. */ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange() { @@ -599,6 +2225,62 @@ public int getStateChangeValue() { : result; } + public static final int RESOURCE_FIELD_NUMBER = 3; + private com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + resource_; + /** + * + * + *
+     * Output only. Resource that is associated with this finding.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; + * + * + * @return Whether the resource field is set. + */ + public boolean hasResource() { + return resource_ != null; + } + /** + * + * + *
+     * Output only. Resource that is associated with this finding.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; + * + * + * @return The resource. + */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + getResource() { + return resource_ == null + ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .getDefaultInstance() + : resource_; + } + /** + * + * + *
+     * Output only. Resource that is associated with this finding.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; + * + */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder + getResourceOrBuilder() { + return getResource(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -622,6 +2304,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(2, stateChange_); } + if (resource_ != null) { + output.writeMessage(3, getResource()); + } unknownFields.writeTo(output); } @@ -640,6 +2325,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stateChange_); } + if (resource_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -662,6 +2350,10 @@ public boolean equals(final java.lang.Object obj) { if (!getFinding().equals(other.getFinding())) return false; } if (stateChange_ != other.stateChange_) return false; + if (hasResource() != other.hasResource()) return false; + if (hasResource()) { + if (!getResource().equals(other.getResource())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -679,6 +2371,10 @@ public int hashCode() { } hash = (37 * hash) + STATE_CHANGE_FIELD_NUMBER; hash = (53 * hash) + stateChange_; + if (hasResource()) { + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -843,6 +2539,12 @@ public Builder clear() { } stateChange_ = 0; + if (resourceBuilder_ == null) { + resource_ = null; + } else { + resource_ = null; + resourceBuilder_ = null; + } return this; } @@ -880,6 +2582,11 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResul result.finding_ = findingBuilder_.build(); } result.stateChange_ = stateChange_; + if (resourceBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = resourceBuilder_.build(); + } onBuilt(); return result; } @@ -942,6 +2649,9 @@ public Builder mergeFrom( if (other.stateChange_ != 0) { setStateChangeValue(other.getStateChangeValue()); } + if (other.hasResource()) { + mergeResource(other.getResource()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -988,6 +2698,8 @@ public Builder mergeFrom( * * * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; @@ -1000,6 +2712,8 @@ public boolean hasFinding() { * * * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * @return The finding. */ public com.google.cloud.securitycenter.v1.Finding getFinding() { if (findingBuilder_ == null) { @@ -1167,6 +2881,8 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * + * + * @return The enum numeric value on the wire for stateChange. */ public int getStateChangeValue() { return stateChange_; @@ -1181,6 +2897,9 @@ public int getStateChangeValue() { * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * + * + * @param value The enum numeric value on the wire for stateChange to set. + * @return This builder for chaining. */ public Builder setStateChangeValue(int value) { stateChange_ = value; @@ -1197,6 +2916,8 @@ public Builder setStateChangeValue(int value) { * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * + * + * @return The stateChange. */ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange() { @@ -1220,6 +2941,9 @@ public Builder setStateChangeValue(int value) { * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * + * + * @param value The stateChange to set. + * @return This builder for chaining. */ public Builder setStateChange( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange @@ -1242,6 +2966,8 @@ public Builder setStateChange( * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * + * + * @return This builder for chaining. */ public Builder clearStateChange() { @@ -1250,6 +2976,231 @@ public Builder clearStateChange() { return this; } + private com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + resource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .Builder, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder> + resourceBuilder_; + /** + * + * + *
+       * Output only. Resource that is associated with this finding.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; + * + * + * @return Whether the resource field is set. + */ + public boolean hasResource() { + return resourceBuilder_ != null || resource_ != null; + } + /** + * + * + *
+       * Output only. Resource that is associated with this finding.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; + * + * + * @return The resource. + */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + getResource() { + if (resourceBuilder_ == null) { + return resource_ == null + ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .getDefaultInstance() + : resource_; + } else { + return resourceBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Output only. Resource that is associated with this finding.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; + * + */ + public Builder setResource( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + value) { + if (resourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + resourceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Output only. Resource that is associated with this finding.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; + * + */ + public Builder setResource( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .Builder + builderForValue) { + if (resourceBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + resourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Output only. Resource that is associated with this finding.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; + * + */ + public Builder mergeResource( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + value) { + if (resourceBuilder_ == null) { + if (resource_ != null) { + resource_ = + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + resourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Output only. Resource that is associated with this finding.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; + * + */ + public Builder clearResource() { + if (resourceBuilder_ == null) { + resource_ = null; + onChanged(); + } else { + resource_ = null; + resourceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Output only. Resource that is associated with this finding.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; + * + */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .Builder + getResourceBuilder() { + + onChanged(); + return getResourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Output only. Resource that is associated with this finding.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; + * + */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder + getResourceOrBuilder() { + if (resourceBuilder_ != null) { + return resourceBuilder_.getMessageOrBuilder(); + } else { + return resource_ == null + ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .getDefaultInstance() + : resource_; + } + } + /** + * + * + *
+       * Output only. Resource that is associated with this finding.
+       * 
+ * + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .Builder, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder> + getResourceFieldBuilder() { + if (resourceBuilder_ == null) { + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource.Builder, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder>(getResource(), getParentForChildren(), isClean()); + resource_ = null; + } + return resourceBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1306,7 +3257,6 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; public static final int LIST_FINDINGS_RESULTS_FIELD_NUMBER = 1; private java.util.List listFindingsResults_; @@ -1397,6 +3347,8 @@ public int getListFindingsResultsCount() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -1409,6 +3361,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -1437,6 +3391,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -1458,6 +3414,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1481,6 +3439,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * int32 total_size = 4; + * + * @return The totalSize. */ public int getTotalSize() { return totalSize_; @@ -1772,7 +3732,6 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse buildPartial() { com.google.cloud.securitycenter.v1.ListFindingsResponse result = new com.google.cloud.securitycenter.v1.ListFindingsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (listFindingsResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { listFindingsResults_ = java.util.Collections.unmodifiableList(listFindingsResults_); @@ -1789,7 +3748,6 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse buildPartial() { } result.nextPageToken_ = nextPageToken_; result.totalSize_ = totalSize_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -2345,6 +4303,8 @@ public Builder removeListFindingsResults(int index) { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -2357,6 +4317,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -2516,6 +4478,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -2537,6 +4501,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -2558,6 +4524,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 3; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -2577,6 +4546,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 3; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -2593,6 +4564,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 3; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2614,6 +4588,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 total_size = 4; + * + * @return The totalSize. */ public int getTotalSize() { return totalSize_; @@ -2626,6 +4602,9 @@ public int getTotalSize() { * * * int32 total_size = 4; + * + * @param value The totalSize to set. + * @return This builder for chaining. */ public Builder setTotalSize(int value) { @@ -2641,6 +4620,8 @@ public Builder setTotalSize(int value) { * * * int32 total_size = 4; + * + * @return This builder for chaining. */ public Builder clearTotalSize() { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java index c521d51eb..de4a99bbc 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java @@ -98,6 +98,8 @@ com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getLi * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -108,6 +110,8 @@ com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getLi * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -130,6 +134,8 @@ com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getLi * * * string next_page_token = 3; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -141,6 +147,8 @@ com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getLi * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); @@ -152,6 +160,8 @@ com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getLi * * * int32 total_size = 4; + * + * @return The totalSize. */ int getTotalSize(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java index cd1ee0967..b9e8ef96e 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java @@ -42,6 +42,12 @@ private ListSourcesRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSourcesRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private ListSourcesRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -125,11 +130,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name of the parent of sources to list. Its format should be
+   * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -146,11 +155,15 @@ public java.lang.String getParent() { * * *
-   * Resource name of the parent of sources to list. Its format should be
+   * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -176,6 +189,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string page_token = 2; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -198,6 +213,8 @@ public java.lang.String getPageToken() { * * * string page_token = 2; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -222,6 +239,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * int32 page_size = 7; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -582,11 +601,15 @@ public Builder mergeFrom( * * *
-     * Resource name of the parent of sources to list. Its format should be
+     * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -603,11 +626,15 @@ public java.lang.String getParent() { * * *
-     * Resource name of the parent of sources to list. Its format should be
+     * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -624,11 +651,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Resource name of the parent of sources to list. Its format should be
+     * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -643,11 +675,15 @@ public Builder setParent(java.lang.String value) { * * *
-     * Resource name of the parent of sources to list. Its format should be
+     * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -659,11 +695,16 @@ public Builder clearParent() { * * *
-     * Resource name of the parent of sources to list. Its format should be
+     * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -687,6 +728,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * * string page_token = 2; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -709,6 +752,8 @@ public java.lang.String getPageToken() { * * * string page_token = 2; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -731,6 +776,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 2; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -751,6 +799,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 2; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -768,6 +818,9 @@ public Builder clearPageToken() { * * * string page_token = 2; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -790,6 +843,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 7; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -803,6 +858,9 @@ public int getPageSize() { * * * int32 page_size = 7; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -819,6 +877,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 7; + * + * @return This builder for chaining. */ public Builder clearPageSize() { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java index 1b216ee18..131c62b28 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface ListSourcesRequestOrBuilder * * *
-   * Resource name of the parent of sources to list. Its format should be
+   * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Resource name of the parent of sources to list. Its format should be
+   * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -56,6 +64,8 @@ public interface ListSourcesRequestOrBuilder * * * string page_token = 2; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -68,6 +78,8 @@ public interface ListSourcesRequestOrBuilder * * * string page_token = 2; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); @@ -80,6 +92,8 @@ public interface ListSourcesRequestOrBuilder * * * int32 page_size = 7; + * + * @return The pageSize. */ int getPageSize(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java index 852b32cc2..ab6bc2fcc 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java @@ -42,6 +42,12 @@ private ListSourcesResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSourcesResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -121,7 +127,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.securitycenter.v1.ListSourcesResponse.Builder.class); } - private int bitField0_; public static final int SOURCES_FIELD_NUMBER = 1; private java.util.List sources_; /** @@ -197,6 +202,8 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(in * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -218,6 +225,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -485,7 +494,6 @@ public com.google.cloud.securitycenter.v1.ListSourcesResponse buildPartial() { com.google.cloud.securitycenter.v1.ListSourcesResponse result = new com.google.cloud.securitycenter.v1.ListSourcesResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (sourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); @@ -496,7 +504,6 @@ public com.google.cloud.securitycenter.v1.ListSourcesResponse buildPartial() { result.sources_ = sourcesBuilder_.build(); } result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -969,6 +976,8 @@ public com.google.cloud.securitycenter.v1.Source.Builder addSourcesBuilder(int i * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -990,6 +999,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1011,6 +1022,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -1030,6 +1044,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 2; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1046,6 +1062,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java index 4fa68a669..a3a9fca61 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java @@ -84,6 +84,8 @@ public interface ListSourcesResponseOrBuilder * * * string next_page_token = 2; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -95,6 +97,8 @@ public interface ListSourcesResponseOrBuilder * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java index 40f2dfd1e..854e765b7 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class OrganizationName implements ResourceName { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java index c770f0969..b4ba0c4e4 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java @@ -42,6 +42,12 @@ private OrganizationSettings() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OrganizationSettings(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private OrganizationSettings( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -144,6 +149,8 @@ public interface AssetDiscoveryConfigOrBuilder * * * repeated string project_ids = 1; + * + * @return A list containing the projectIds. */ java.util.List getProjectIdsList(); /** @@ -154,6 +161,8 @@ public interface AssetDiscoveryConfigOrBuilder * * * repeated string project_ids = 1; + * + * @return The count of projectIds. */ int getProjectIdsCount(); /** @@ -164,6 +173,9 @@ public interface AssetDiscoveryConfigOrBuilder * * * repeated string project_ids = 1; + * + * @param index The index of the element to return. + * @return The projectIds at the given index. */ java.lang.String getProjectIds(int index); /** @@ -174,6 +186,9 @@ public interface AssetDiscoveryConfigOrBuilder * * * repeated string project_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the projectIds at the given index. */ com.google.protobuf.ByteString getProjectIdsBytes(int index); @@ -187,6 +202,8 @@ public interface AssetDiscoveryConfigOrBuilder * * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @return The enum numeric value on the wire for inclusionMode. */ int getInclusionModeValue(); /** @@ -199,6 +216,8 @@ public interface AssetDiscoveryConfigOrBuilder * * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @return The inclusionMode. */ com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode(); @@ -227,6 +246,12 @@ private AssetDiscoveryConfig() { inclusionMode_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AssetDiscoveryConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -402,12 +427,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @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 InclusionMode 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 InclusionMode forNumber(int value) { switch (value) { case 0: @@ -470,7 +503,6 @@ private InclusionMode(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode) } - private int bitField0_; public static final int PROJECT_IDS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList projectIds_; /** @@ -481,6 +513,8 @@ private InclusionMode(int value) { * * * repeated string project_ids = 1; + * + * @return A list containing the projectIds. */ public com.google.protobuf.ProtocolStringList getProjectIdsList() { return projectIds_; @@ -493,6 +527,8 @@ public com.google.protobuf.ProtocolStringList getProjectIdsList() { * * * repeated string project_ids = 1; + * + * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); @@ -505,6 +541,9 @@ public int getProjectIdsCount() { * * * repeated string project_ids = 1; + * + * @param index The index of the element to return. + * @return The projectIds at the given index. */ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); @@ -517,6 +556,9 @@ public java.lang.String getProjectIds(int index) { * * * repeated string project_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the projectIds at the given index. */ public com.google.protobuf.ByteString getProjectIdsBytes(int index) { return projectIds_.getByteString(index); @@ -534,6 +576,8 @@ public com.google.protobuf.ByteString getProjectIdsBytes(int index) { * * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @return The enum numeric value on the wire for inclusionMode. */ public int getInclusionModeValue() { return inclusionMode_; @@ -548,6 +592,8 @@ public int getInclusionModeValue() { * * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @return The inclusionMode. */ public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig .InclusionMode @@ -839,14 +885,12 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryCon com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig result = new com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.projectIds_ = projectIds_; result.inclusionMode_ = inclusionMode_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -968,6 +1012,8 @@ private void ensureProjectIdsIsMutable() { * * * repeated string project_ids = 1; + * + * @return A list containing the projectIds. */ public com.google.protobuf.ProtocolStringList getProjectIdsList() { return projectIds_.getUnmodifiableView(); @@ -980,6 +1026,8 @@ public com.google.protobuf.ProtocolStringList getProjectIdsList() { * * * repeated string project_ids = 1; + * + * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); @@ -992,6 +1040,9 @@ public int getProjectIdsCount() { * * * repeated string project_ids = 1; + * + * @param index The index of the element to return. + * @return The projectIds at the given index. */ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); @@ -1004,6 +1055,9 @@ public java.lang.String getProjectIds(int index) { * * * repeated string project_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the projectIds at the given index. */ public com.google.protobuf.ByteString getProjectIdsBytes(int index) { return projectIds_.getByteString(index); @@ -1016,6 +1070,10 @@ public com.google.protobuf.ByteString getProjectIdsBytes(int index) { * * * repeated string project_ids = 1; + * + * @param index The index to set the value at. + * @param value The projectIds to set. + * @return This builder for chaining. */ public Builder setProjectIds(int index, java.lang.String value) { if (value == null) { @@ -1034,6 +1092,9 @@ public Builder setProjectIds(int index, java.lang.String value) { * * * repeated string project_ids = 1; + * + * @param value The projectIds to add. + * @return This builder for chaining. */ public Builder addProjectIds(java.lang.String value) { if (value == null) { @@ -1052,6 +1113,9 @@ public Builder addProjectIds(java.lang.String value) { * * * repeated string project_ids = 1; + * + * @param values The projectIds to add. + * @return This builder for chaining. */ public Builder addAllProjectIds(java.lang.Iterable values) { ensureProjectIdsIsMutable(); @@ -1067,6 +1131,8 @@ public Builder addAllProjectIds(java.lang.Iterable values) { * * * repeated string project_ids = 1; + * + * @return This builder for chaining. */ public Builder clearProjectIds() { projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1082,6 +1148,9 @@ public Builder clearProjectIds() { * * * repeated string project_ids = 1; + * + * @param value The bytes of the projectIds to add. + * @return This builder for chaining. */ public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1105,6 +1174,8 @@ public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { * * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @return The enum numeric value on the wire for inclusionMode. */ public int getInclusionModeValue() { return inclusionMode_; @@ -1119,6 +1190,9 @@ public int getInclusionModeValue() { * * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @param value The enum numeric value on the wire for inclusionMode to set. + * @return This builder for chaining. */ public Builder setInclusionModeValue(int value) { inclusionMode_ = value; @@ -1135,6 +1209,8 @@ public Builder setInclusionModeValue(int value) { * * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @return The inclusionMode. */ public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig .InclusionMode @@ -1159,6 +1235,9 @@ public Builder setInclusionModeValue(int value) { * * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @param value The inclusionMode to set. + * @return This builder for chaining. */ public Builder setInclusionMode( com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode @@ -1181,6 +1260,8 @@ public Builder setInclusionMode( * * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @return This builder for chaining. */ public Builder clearInclusionMode() { @@ -1255,10 +1336,12 @@ public com.google.protobuf.Parser getParserForType() { * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1278,10 +1361,12 @@ public java.lang.String getName() { * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1308,6 +1393,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * bool enable_asset_discovery = 2; + * + * @return The enableAssetDiscovery. */ public boolean getEnableAssetDiscovery() { return enableAssetDiscovery_; @@ -1326,6 +1413,8 @@ public boolean getEnableAssetDiscovery() { * * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * + * + * @return Whether the assetDiscoveryConfig field is set. */ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfig_ != null; @@ -1340,6 +1429,8 @@ public boolean hasAssetDiscoveryConfig() { * * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * + * + * @return The assetDiscoveryConfig. */ public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { @@ -1736,10 +1827,12 @@ public Builder mergeFrom( * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1759,10 +1852,12 @@ public java.lang.String getName() { * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1782,10 +1877,13 @@ public com.google.protobuf.ByteString getNameBytes() { * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1803,10 +1901,12 @@ public Builder setName(java.lang.String value) { * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1821,10 +1921,13 @@ public Builder clearName() { * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1849,6 +1952,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * bool enable_asset_discovery = 2; + * + * @return The enableAssetDiscovery. */ public boolean getEnableAssetDiscovery() { return enableAssetDiscovery_; @@ -1864,6 +1969,9 @@ public boolean getEnableAssetDiscovery() { * * * bool enable_asset_discovery = 2; + * + * @param value The enableAssetDiscovery to set. + * @return This builder for chaining. */ public Builder setEnableAssetDiscovery(boolean value) { @@ -1882,6 +1990,8 @@ public Builder setEnableAssetDiscovery(boolean value) { * * * bool enable_asset_discovery = 2; + * + * @return This builder for chaining. */ public Builder clearEnableAssetDiscovery() { @@ -1907,6 +2017,8 @@ public Builder clearEnableAssetDiscovery() { * * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * + * + * @return Whether the assetDiscoveryConfig field is set. */ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfigBuilder_ != null || assetDiscoveryConfig_ != null; @@ -1921,6 +2033,8 @@ public boolean hasAssetDiscoveryConfig() { * * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * + * + * @return The assetDiscoveryConfig. */ public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java index d973491bb..3d41b0851 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class OrganizationSettingsName implements ResourceName { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java index 8bc74b9ef..c496154bd 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java @@ -30,10 +30,12 @@ public interface OrganizationSettingsOrBuilder * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -43,10 +45,12 @@ public interface OrganizationSettingsOrBuilder * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -61,6 +65,8 @@ public interface OrganizationSettingsOrBuilder * * * bool enable_asset_discovery = 2; + * + * @return The enableAssetDiscovery. */ boolean getEnableAssetDiscovery(); @@ -74,6 +80,8 @@ public interface OrganizationSettingsOrBuilder * * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * + * + * @return Whether the assetDiscoveryConfig field is set. */ boolean hasAssetDiscoveryConfig(); /** @@ -86,6 +94,8 @@ public interface OrganizationSettingsOrBuilder * * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * + * + * @return The assetDiscoveryConfig. */ com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java index c83355ddc..15fb92c40 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java @@ -46,39 +46,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n:google/cloud/securitycenter/v1/organiz" + "ation_settings.proto\022\036google.cloud.secur" - + "itycenter.v1\032\034google/api/annotations.pro" - + "to\"\252\003\n\024OrganizationSettings\022\014\n\004name\030\001 \001(" - + "\t\022\036\n\026enable_asset_discovery\030\002 \001(\010\022i\n\026ass" - + "et_discovery_config\030\003 \001(\0132I.google.cloud" - + ".securitycenter.v1.OrganizationSettings." - + "AssetDiscoveryConfig\032\354\001\n\024AssetDiscoveryC" - + "onfig\022\023\n\013project_ids\030\001 \003(\t\022o\n\016inclusion_" - + "mode\030\002 \001(\0162W.google.cloud.securitycenter" - + ".v1.OrganizationSettings.AssetDiscoveryC" - + "onfig.InclusionMode\"N\n\rInclusionMode\022\036\n\032" - + "INCLUSION_MODE_UNSPECIFIED\020\000\022\020\n\014INCLUDE_" - + "ONLY\020\001\022\013\n\007EXCLUDE\020\002J\004\010\004\020\005J\004\010\005\020\006B\332\001\n\"com." - + "google.cloud.securitycenter.v1P\001ZLgoogle" - + ".golang.org/genproto/googleapis/cloud/se" - + "curitycenter/v1;securitycenter\252\002\036Google." - + "Cloud.SecurityCenter.V1\312\002\036Google\\Cloud\\S" - + "ecurityCenter\\V1\352\002!Google::Cloud::Securi" - + "tyCenter::V1b\006proto3" + + "itycenter.v1\032\031google/api/resource.proto\032" + + "\034google/api/annotations.proto\"\212\004\n\024Organi" + + "zationSettings\022\014\n\004name\030\001 \001(\t\022\036\n\026enable_a" + + "sset_discovery\030\002 \001(\010\022i\n\026asset_discovery_" + + "config\030\003 \001(\0132I.google.cloud.securitycent" + + "er.v1.OrganizationSettings.AssetDiscover" + + "yConfig\032\354\001\n\024AssetDiscoveryConfig\022\023\n\013proj" + + "ect_ids\030\001 \003(\t\022o\n\016inclusion_mode\030\002 \001(\0162W." + + "google.cloud.securitycenter.v1.Organizat" + + "ionSettings.AssetDiscoveryConfig.Inclusi" + + "onMode\"N\n\rInclusionMode\022\036\n\032INCLUSION_MOD" + + "E_UNSPECIFIED\020\000\022\020\n\014INCLUDE_ONLY\020\001\022\013\n\007EXC" + + "LUDE\020\002:j\352Ag\n2securitycenter.googleapis.c" + + "om/OrganizationSettings\0221organizations/{" + + "organization}/organizationSettingsB\332\001\n\"c" + + "om.google.cloud.securitycenter.v1P\001ZLgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/securitycenter/v1;securitycenter\252\002\036Goog" + + "le.Cloud.SecurityCenter.V1\312\002\036Google\\Clou" + + "d\\SecurityCenter\\V1\352\002!Google::Cloud::Sec" + + "urityCenter::V1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable = @@ -97,6 +93,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "ProjectIds", "InclusionMode", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSourcesName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSourcesName.java index 46414abf1..e013bbcf5 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSourcesName.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSourcesName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class OrganizationSourcesName implements ResourceName { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java index 7638b9850..e6f363d37 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java @@ -41,6 +41,12 @@ private RunAssetDiscoveryRequest() { parent_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunAssetDiscoveryRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private RunAssetDiscoveryRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -112,11 +117,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Name of the organization to run asset discovery for. Its format is
+   * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -133,11 +142,15 @@ public java.lang.String getParent() { * * *
-   * Name of the organization to run asset discovery for. Its format is
+   * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -475,11 +488,15 @@ public Builder mergeFrom( * * *
-     * Name of the organization to run asset discovery for. Its format is
+     * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -496,11 +513,15 @@ public java.lang.String getParent() { * * *
-     * Name of the organization to run asset discovery for. Its format is
+     * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -517,11 +538,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Name of the organization to run asset discovery for. Its format is
+     * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -536,11 +562,15 @@ public Builder setParent(java.lang.String value) { * * *
-     * Name of the organization to run asset discovery for. Its format is
+     * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -552,11 +582,16 @@ public Builder clearParent() { * * *
-     * Name of the organization to run asset discovery for. Its format is
+     * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java index d5e296918..553a8cefc 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface RunAssetDiscoveryRequestOrBuilder * * *
-   * Name of the organization to run asset discovery for. Its format is
+   * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Name of the organization to run asset discovery for. Its format is
+   * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java index 9746d9953..6e26b9fbc 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java @@ -41,6 +41,12 @@ private RunAssetDiscoveryResponse() { state_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunAssetDiscoveryResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private RunAssetDiscoveryResponse( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -225,12 +230,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static State forNumber(int value) { switch (value) { case 0: @@ -302,6 +315,8 @@ private State(int value) { * * * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * + * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; @@ -314,6 +329,8 @@ public int getStateValue() { * * * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * + * @return The state. */ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") @@ -334,6 +351,8 @@ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getSta * * * .google.protobuf.Duration duration = 2; + * + * @return Whether the duration field is set. */ public boolean hasDuration() { return duration_ != null; @@ -346,6 +365,8 @@ public boolean hasDuration() { * * * .google.protobuf.Duration duration = 2; + * + * @return The duration. */ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; @@ -724,6 +745,8 @@ public Builder mergeFrom( * * * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * + * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; @@ -736,6 +759,9 @@ public int getStateValue() { * * * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; @@ -750,6 +776,8 @@ public Builder setStateValue(int value) { * * * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * + * @return The state. */ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") @@ -767,6 +795,9 @@ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getSta * * * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * + * @param value The state to set. + * @return This builder for chaining. */ public Builder setState( com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State value) { @@ -786,6 +817,8 @@ public Builder setState( * * * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * + * @return This builder for chaining. */ public Builder clearState() { @@ -808,6 +841,8 @@ public Builder clearState() { * * * .google.protobuf.Duration duration = 2; + * + * @return Whether the duration field is set. */ public boolean hasDuration() { return durationBuilder_ != null || duration_ != null; @@ -820,6 +855,8 @@ public boolean hasDuration() { * * * .google.protobuf.Duration duration = 2; + * + * @return The duration. */ public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java index fdb8b8164..8fa6647c3 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java @@ -31,6 +31,8 @@ public interface RunAssetDiscoveryResponseOrBuilder * * * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * + * @return The enum numeric value on the wire for state. */ int getStateValue(); /** @@ -41,6 +43,8 @@ public interface RunAssetDiscoveryResponseOrBuilder * * * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * + * @return The state. */ com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState(); @@ -52,6 +56,8 @@ public interface RunAssetDiscoveryResponseOrBuilder * * * .google.protobuf.Duration duration = 2; + * + * @return Whether the duration field is set. */ boolean hasDuration(); /** @@ -62,6 +68,8 @@ public interface RunAssetDiscoveryResponseOrBuilder * * * .google.protobuf.Duration duration = 2; + * + * @return The duration. */ com.google.protobuf.Duration getDuration(); /** diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java index b1027ee1a..b4196dbf4 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java @@ -43,37 +43,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\nAgoogle/cloud/securitycenter/v1/run_ass" + "et_discovery_response.proto\022\036google.clou" + "d.securitycenter.v1\032\036google/protobuf/dur" - + "ation.proto\032\037google/protobuf/timestamp.p" - + "roto\032\034google/api/annotations.proto\"\347\001\n\031R" - + "unAssetDiscoveryResponse\022N\n\005state\030\001 \001(\0162" - + "?.google.cloud.securitycenter.v1.RunAsse" - + "tDiscoveryResponse.State\022+\n\010duration\030\002 \001" - + "(\0132\031.google.protobuf.Duration\"M\n\005State\022\025" - + "\n\021STATE_UNSPECIFIED\020\000\022\r\n\tCOMPLETED\020\001\022\016\n\n" - + "SUPERSEDED\020\002\022\016\n\nTERMINATED\020\003B\332\001\n\"com.goo" - + "gle.cloud.securitycenter.v1P\001ZLgoogle.go" - + "lang.org/genproto/googleapis/cloud/secur" - + "itycenter/v1;securitycenter\252\002\036Google.Clo" - + "ud.SecurityCenter.V1\312\002\036Google\\Cloud\\Secu" - + "rityCenter\\V1\352\002!Google::Cloud::SecurityC" - + "enter::V1b\006proto3" + + "ation.proto\032\034google/api/annotations.prot" + + "o\"\347\001\n\031RunAssetDiscoveryResponse\022N\n\005state" + + "\030\001 \001(\0162?.google.cloud.securitycenter.v1." + + "RunAssetDiscoveryResponse.State\022+\n\010durat" + + "ion\030\002 \001(\0132\031.google.protobuf.Duration\"M\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\tCOMPLETE" + + "D\020\001\022\016\n\nSUPERSEDED\020\002\022\016\n\nTERMINATED\020\003B\332\001\n\"" + + "com.google.cloud.securitycenter.v1P\001ZLgo" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/securitycenter/v1;securitycenter\252\002\036Goo" + + "gle.Cloud.SecurityCenter.V1\312\002\036Google\\Clo" + + "ud\\SecurityCenter\\V1\352\002!Google::Cloud::Se" + + "curityCenter::V1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable = @@ -83,7 +73,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "State", "Duration", }); com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java index 644e451db..f15b448cd 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java @@ -44,6 +44,12 @@ private SecurityMarks() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SecurityMarks(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -77,10 +83,10 @@ private SecurityMarks( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { marks_ = com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry marks__ = input.readMessage( @@ -133,7 +139,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.cloud.securitycenter.v1.SecurityMarks.Builder.class); } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -143,11 +148,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -167,11 +174,13 @@ public java.lang.String getName() { * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -216,10 +225,10 @@ public int getMarksCount() { *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be between 1 - 256 characters (inclusive)
-   *   - Keys must be letters, numbers, underscores, or dashes
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -242,10 +251,10 @@ public java.util.Map getMarks() { *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be between 1 - 256 characters (inclusive)
-   *   - Keys must be letters, numbers, underscores, or dashes
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -260,10 +269,10 @@ public java.util.Map getMarksMap() { *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be between 1 - 256 characters (inclusive)
-   *   - Keys must be letters, numbers, underscores, or dashes
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -282,10 +291,10 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be between 1 - 256 characters (inclusive)
-   *   - Keys must be letters, numbers, underscores, or dashes
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -577,11 +586,9 @@ public com.google.cloud.securitycenter.v1.SecurityMarks buildPartial() { com.google.cloud.securitycenter.v1.SecurityMarks result = new com.google.cloud.securitycenter.v1.SecurityMarks(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; result.marks_ = internalGetMarks(); result.marks_.makeImmutable(); - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -676,11 +683,13 @@ public Builder mergeFrom( * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -700,11 +709,13 @@ public java.lang.String getName() { * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -724,11 +735,14 @@ public com.google.protobuf.ByteString getNameBytes() { * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -746,11 +760,13 @@ public Builder setName(java.lang.String value) { * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -765,11 +781,14 @@ public Builder clearName() { * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -813,10 +832,10 @@ public int getMarksCount() { *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
-     *   - Keys and values are treated as case insensitive
-     *   - Keys must be between 1 - 256 characters (inclusive)
-     *   - Keys must be letters, numbers, underscores, or dashes
-     *   - Values have leading and trailing whitespace trimmed, remaining
+     *   * Keys and values are treated as case insensitive
+     *   * Keys must be between 1 - 256 characters (inclusive)
+     *   * Keys must be letters, numbers, underscores, or dashes
+     *   * Values have leading and trailing whitespace trimmed, remaining
      *     characters must be between 1 - 4096 characters (inclusive)
      * 
* @@ -839,10 +858,10 @@ public java.util.Map getMarks() { *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
-     *   - Keys and values are treated as case insensitive
-     *   - Keys must be between 1 - 256 characters (inclusive)
-     *   - Keys must be letters, numbers, underscores, or dashes
-     *   - Values have leading and trailing whitespace trimmed, remaining
+     *   * Keys and values are treated as case insensitive
+     *   * Keys must be between 1 - 256 characters (inclusive)
+     *   * Keys must be letters, numbers, underscores, or dashes
+     *   * Values have leading and trailing whitespace trimmed, remaining
      *     characters must be between 1 - 4096 characters (inclusive)
      * 
* @@ -857,10 +876,10 @@ public java.util.Map getMarksMap() { *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
-     *   - Keys and values are treated as case insensitive
-     *   - Keys must be between 1 - 256 characters (inclusive)
-     *   - Keys must be letters, numbers, underscores, or dashes
-     *   - Values have leading and trailing whitespace trimmed, remaining
+     *   * Keys and values are treated as case insensitive
+     *   * Keys must be between 1 - 256 characters (inclusive)
+     *   * Keys must be letters, numbers, underscores, or dashes
+     *   * Values have leading and trailing whitespace trimmed, remaining
      *     characters must be between 1 - 4096 characters (inclusive)
      * 
* @@ -879,10 +898,10 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
-     *   - Keys and values are treated as case insensitive
-     *   - Keys must be between 1 - 256 characters (inclusive)
-     *   - Keys must be letters, numbers, underscores, or dashes
-     *   - Values have leading and trailing whitespace trimmed, remaining
+     *   * Keys and values are treated as case insensitive
+     *   * Keys must be between 1 - 256 characters (inclusive)
+     *   * Keys must be letters, numbers, underscores, or dashes
+     *   * Values have leading and trailing whitespace trimmed, remaining
      *     characters must be between 1 - 4096 characters (inclusive)
      * 
* @@ -909,10 +928,10 @@ public Builder clearMarks() { *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
-     *   - Keys and values are treated as case insensitive
-     *   - Keys must be between 1 - 256 characters (inclusive)
-     *   - Keys must be letters, numbers, underscores, or dashes
-     *   - Values have leading and trailing whitespace trimmed, remaining
+     *   * Keys and values are treated as case insensitive
+     *   * Keys must be between 1 - 256 characters (inclusive)
+     *   * Keys must be letters, numbers, underscores, or dashes
+     *   * Values have leading and trailing whitespace trimmed, remaining
      *     characters must be between 1 - 4096 characters (inclusive)
      * 
* @@ -936,10 +955,10 @@ public java.util.Map getMutableMarks() { *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
-     *   - Keys and values are treated as case insensitive
-     *   - Keys must be between 1 - 256 characters (inclusive)
-     *   - Keys must be letters, numbers, underscores, or dashes
-     *   - Values have leading and trailing whitespace trimmed, remaining
+     *   * Keys and values are treated as case insensitive
+     *   * Keys must be between 1 - 256 characters (inclusive)
+     *   * Keys must be letters, numbers, underscores, or dashes
+     *   * Values have leading and trailing whitespace trimmed, remaining
      *     characters must be between 1 - 4096 characters (inclusive)
      * 
* @@ -961,10 +980,10 @@ public Builder putMarks(java.lang.String key, java.lang.String value) { *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
-     *   - Keys and values are treated as case insensitive
-     *   - Keys must be between 1 - 256 characters (inclusive)
-     *   - Keys must be letters, numbers, underscores, or dashes
-     *   - Values have leading and trailing whitespace trimmed, remaining
+     *   * Keys and values are treated as case insensitive
+     *   * Keys must be between 1 - 256 characters (inclusive)
+     *   * Keys must be letters, numbers, underscores, or dashes
+     *   * Values have leading and trailing whitespace trimmed, remaining
      *     characters must be between 1 - 4096 characters (inclusive)
      * 
* diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java index f50450dd7..c341bd974 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java @@ -30,11 +30,13 @@ public interface SecurityMarksOrBuilder * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -44,11 +46,13 @@ public interface SecurityMarksOrBuilder * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -58,10 +62,10 @@ public interface SecurityMarksOrBuilder *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be between 1 - 256 characters (inclusive)
-   *   - Keys must be letters, numbers, underscores, or dashes
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -74,10 +78,10 @@ public interface SecurityMarksOrBuilder *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be between 1 - 256 characters (inclusive)
-   *   - Keys must be letters, numbers, underscores, or dashes
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -93,10 +97,10 @@ public interface SecurityMarksOrBuilder *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be between 1 - 256 characters (inclusive)
-   *   - Keys must be letters, numbers, underscores, or dashes
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -109,10 +113,10 @@ public interface SecurityMarksOrBuilder *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be between 1 - 256 characters (inclusive)
-   *   - Keys must be letters, numbers, underscores, or dashes
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -125,10 +129,10 @@ public interface SecurityMarksOrBuilder *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be between 1 - 256 characters (inclusive)
-   *   - Keys must be letters, numbers, underscores, or dashes
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java index d98f9cd56..4d8af25a2 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java @@ -46,32 +46,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n3google/cloud/securitycenter/v1/securit" + "y_marks.proto\022\036google.cloud.securitycent" - + "er.v1\032\034google/api/annotations.proto\"\224\001\n\r" - + "SecurityMarks\022\014\n\004name\030\001 \001(\t\022G\n\005marks\030\002 \003" - + "(\01328.google.cloud.securitycenter.v1.Secu" - + "rityMarks.MarksEntry\032,\n\nMarksEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\332\001\n\"com.googl" - + "e.cloud.securitycenter.v1P\001ZLgoogle.gola" - + "ng.org/genproto/googleapis/cloud/securit" - + "ycenter/v1;securitycenter\252\002\036Google.Cloud" - + ".SecurityCenter.V1\312\002\036Google\\Cloud\\Securi" - + "tyCenter\\V1\352\002!Google::Cloud::SecurityCen" - + "ter::V1b\006proto3" + + "er.v1\032\031google/api/resource.proto\032\034google" + + "/api/annotations.proto\"\323\002\n\rSecurityMarks" + + "\022\014\n\004name\030\001 \001(\t\022G\n\005marks\030\002 \003(\01328.google.c" + + "loud.securitycenter.v1.SecurityMarks.Mar" + + "ksEntry\032,\n\nMarksEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:\274\001\352A\270\001\n+securitycenter.goo" + + "gleapis.com/SecurityMarks\0229organizations" + + "/{organization}/assets/{asset}/securityM" + + "arks\022Norganizations/{organization}/sourc" + + "es/{source}/findings/{finding}/securityM" + + "arksB\332\001\n\"com.google.cloud.securitycenter" + + ".v1P\001ZLgoogle.golang.org/genproto/google" + + "apis/cloud/securitycenter/v1;securitycen" + + "ter\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036G" + + "oogle\\Cloud\\SecurityCenter\\V1\352\002!Google::" + + "Cloud::SecurityCenter::V1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable = @@ -90,6 +88,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java index 5134c0070..6b24f2c7e 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java @@ -99,6 +99,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -135,234 +139,259 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n;google/cloud/securitycenter/v1/securit" + "ycenter_service.proto\022\036google.cloud.secu" + "ritycenter.v1\032\034google/api/annotations.pr" - + "oto\032*google/cloud/securitycenter/v1/asse" - + "t.proto\032,google/cloud/securitycenter/v1/" - + "finding.proto\032:google/cloud/securitycent" - + "er/v1/organization_settings.proto\032Agoogl" - + "e/cloud/securitycenter/v1/run_asset_disc" - + "overy_response.proto\0323google/cloud/secur" - + "itycenter/v1/security_marks.proto\032+googl" - + "e/cloud/securitycenter/v1/source.proto\032\036" - + "google/iam/v1/iam_policy.proto\032\032google/i" - + "am/v1/policy.proto\032#google/longrunning/o" - + "perations.proto\032\036google/protobuf/duratio" - + "n.proto\032\033google/protobuf/empty.proto\032 go" - + "ogle/protobuf/field_mask.proto\032\034google/p" - + "rotobuf/struct.proto\032\037google/protobuf/ti" - + "mestamp.proto\"t\n\024CreateFindingRequest\022\016\n" - + "\006parent\030\001 \001(\t\022\022\n\nfinding_id\030\002 \001(\t\0228\n\007fin" - + "ding\030\003 \001(\0132\'.google.cloud.securitycenter" - + ".v1.Finding\"]\n\023CreateSourceRequest\022\016\n\006pa" - + "rent\030\001 \001(\t\0226\n\006source\030\002 \001(\0132&.google.clou" - + "d.securitycenter.v1.Source\".\n\036GetOrganiz" - + "ationSettingsRequest\022\014\n\004name\030\001 \001(\t\" \n\020Ge" - + "tSourceRequest\022\014\n\004name\030\001 \001(\t\"\327\001\n\022GroupAs" - + "setsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 " - + "\001(\t\022\020\n\010group_by\030\003 \001(\t\0223\n\020compare_duratio" - + "n\030\004 \001(\0132\031.google.protobuf.Duration\022-\n\tre" - + "ad_time\030\005 \001(\0132\032.google.protobuf.Timestam" - + "p\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005" - + "J\004\010\006\020\007\"\270\001\n\023GroupAssetsResponse\022E\n\020group_" - + "by_results\030\001 \003(\0132+.google.cloud.security" - + "center.v1.GroupResult\022-\n\tread_time\030\002 \001(\013" - + "2\032.google.protobuf.Timestamp\022\027\n\017next_pag" - + "e_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\331\001\n\024Gr" - + "oupFindingsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006fi" - + "lter\030\002 \001(\t\022\020\n\010group_by\030\003 \001(\t\022-\n\tread_tim" - + "e\030\004 \001(\0132\032.google.protobuf.Timestamp\0223\n\020c" - + "ompare_duration\030\005 \001(\0132\031.google.protobuf." - + "Duration\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_siz" - + "e\030\010 \001(\005J\004\010\006\020\007\"\272\001\n\025GroupFindingsResponse\022" - + "E\n\020group_by_results\030\001 \003(\0132+.google.cloud" - + ".securitycenter.v1.GroupResult\022-\n\tread_t" - + "ime\030\002 \001(\0132\032.google.protobuf.Timestamp\022\027\n" - + "\017next_page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001" - + "(\005\"\270\001\n\013GroupResult\022O\n\nproperties\030\001 \003(\0132;" + + "oto\032\027google/api/client.proto\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\032*google/cloud/securitycenter/v1" + + "/asset.proto\032,google/cloud/securitycente" + + "r/v1/finding.proto\032:google/cloud/securit" + + "ycenter/v1/organization_settings.proto\0323" + + "google/cloud/securitycenter/v1/security_" + + "marks.proto\032+google/cloud/securitycenter" + + "/v1/source.proto\032\036google/iam/v1/iam_poli" + + "cy.proto\032\032google/iam/v1/policy.proto\032#go" + + "ogle/longrunning/operations.proto\032\036googl" + + "e/protobuf/duration.proto\032\033google/protob" + + "uf/empty.proto\032 google/protobuf/field_ma" + + "sk.proto\032\034google/protobuf/struct.proto\032\037" + + "google/protobuf/timestamp.proto\"\254\001\n\024Crea" + + "teFindingRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&" + + "\n$securitycenter.googleapis.com/Source\022\027" + + "\n\nfinding_id\030\002 \001(\tB\003\340A\002\022=\n\007finding\030\003 \001(\013" + + "2\'.google.cloud.securitycenter.v1.Findin" + + "gB\003\340A\002\"\234\001\n\023CreateSourceRequest\022H\n\006parent" + + "\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcemanager.goo" + + "gleapis.com/Organization\022;\n\006source\030\002 \001(\013" + + "2&.google.cloud.securitycenter.v1.Source" + + "B\003\340A\002\"j\n\036GetOrganizationSettingsRequest\022" + + "H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2securitycenter.go" + + "ogleapis.com/OrganizationSettings\"N\n\020Get" + + "SourceRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$sec" + + "uritycenter.googleapis.com/Source\"\220\002\n\022Gr" + + "oupAssetsRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2" + + "\n0cloudresourcemanager.googleapis.com/Or" + + "ganization\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_by\030\003" + + " \001(\tB\003\340A\002\0223\n\020compare_duration\030\004 \001(\0132\031.go" + + "ogle.protobuf.Duration\022-\n\tread_time\030\005 \001(" + + "\0132\032.google.protobuf.Timestamp\022\022\n\npage_to" + + "ken\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\270\001\n\023GroupAs" + + "setsResponse\022E\n\020group_by_results\030\001 \003(\0132+" + ".google.cloud.securitycenter.v1.GroupRes" - + "ult.PropertiesEntry\022\r\n\005count\030\002 \001(\003\032I\n\017Pr" - + "opertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(" - + "\0132\026.google.protobuf.Value:\0028\001\"K\n\022ListSou" - + "rcesRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_toke" - + "n\030\002 \001(\t\022\021\n\tpage_size\030\007 \001(\005\"g\n\023ListSource" - + "sResponse\0227\n\007sources\030\001 \003(\0132&.google.clou" - + "d.securitycenter.v1.Source\022\027\n\017next_page_" - + "token\030\002 \001(\t\"\206\002\n\021ListAssetsRequest\022\016\n\006par" - + "ent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 " - + "\001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.protobuf" - + ".Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031.g" - + "oogle.protobuf.Duration\022.\n\nfield_mask\030\007 " - + "\001(\0132\032.google.protobuf.FieldMask\022\022\n\npage_" - + "token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005J\004\010\006\020\007\"\303\003\n" - + "\022ListAssetsResponse\022`\n\023list_assets_resul" - + "ts\030\001 \003(\0132C.google.cloud.securitycenter.v" - + "1.ListAssetsResponse.ListAssetsResult\022-\n" - + "\tread_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_s" - + "ize\030\004 \001(\005\032\356\001\n\020ListAssetsResult\0224\n\005asset\030" - + "\001 \001(\0132%.google.cloud.securitycenter.v1.A" - + "sset\022e\n\014state_change\030\002 \001(\0162O.google.clou" - + "d.securitycenter.v1.ListAssetsResponse.L" - + "istAssetsResult.StateChange\"=\n\013StateChan" - + "ge\022\n\n\006UNUSED\020\000\022\t\n\005ADDED\020\001\022\013\n\007REMOVED\020\002\022\n" - + "\n\006ACTIVE\020\003\"\210\002\n\023ListFindingsRequest\022\016\n\006pa" - + "rent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003" - + " \001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.protobu" - + "f.Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031." - + "google.protobuf.Duration\022.\n\nfield_mask\030\007" - + " \001(\0132\032.google.protobuf.FieldMask\022\022\n\npage" - + "_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005J\004\010\006\020\007\"\345\003" - + "\n\024ListFindingsResponse\022f\n\025list_findings_" - + "results\030\001 \003(\0132G.google.cloud.securitycen" - + "ter.v1.ListFindingsResponse.ListFindings" - + "Result\022-\n\tread_time\030\002 \001(\0132\032.google.proto" - + "buf.Timestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022" - + "\n\ntotal_size\030\004 \001(\005\032\210\002\n\022ListFindingsResul" - + "t\0228\n\007finding\030\001 \001(\0132\'.google.cloud.securi" - + "tycenter.v1.Finding\022i\n\014state_change\030\002 \001(" - + "\0162S.google.cloud.securitycenter.v1.ListF" - + "indingsResponse.ListFindingsResult.State" - + "Change\"M\n\013StateChange\022\n\n\006UNUSED\020\000\022\013\n\007CHA" - + "NGED\020\001\022\r\n\tUNCHANGED\020\002\022\t\n\005ADDED\020\003\022\013\n\007REMO" - + "VED\020\004\"\224\001\n\026SetFindingStateRequest\022\014\n\004name" - + "\030\001 \001(\t\022<\n\005state\030\002 \001(\0162-.google.cloud.sec" - + "uritycenter.v1.Finding.State\022.\n\nstart_ti" - + "me\030\003 \001(\0132\032.google.protobuf.Timestamp\"*\n\030" - + "RunAssetDiscoveryRequest\022\016\n\006parent\030\001 \001(\t" - + "\"\201\001\n\024UpdateFindingRequest\0228\n\007finding\030\001 \001" - + "(\0132\'.google.cloud.securitycenter.v1.Find" - + "ing\022/\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMask\"\251\001\n!UpdateOrganizationSetti" - + "ngsRequest\022S\n\025organization_settings\030\001 \001(" - + "\01324.google.cloud.securitycenter.v1.Organ" - + "izationSettings\022/\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMask\"~\n\023UpdateSource" - + "Request\0226\n\006source\030\001 \001(\0132&.google.cloud.s" - + "ecuritycenter.v1.Source\022/\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMask\"\304\001\n\032Upd" - + "ateSecurityMarksRequest\022E\n\016security_mark" - + "s\030\001 \001(\0132-.google.cloud.securitycenter.v1" - + ".SecurityMarks\022/\n\013update_mask\030\002 \001(\0132\032.go" - + "ogle.protobuf.FieldMask\022.\n\nstart_time\030\003 " - + "\001(\0132\032.google.protobuf.Timestamp2\220\032\n\016Secu" - + "rityCenter\022\241\001\n\014CreateSource\0223.google.clo" - + "ud.securitycenter.v1.CreateSourceRequest" - + "\032&.google.cloud.securitycenter.v1.Source" - + "\"4\202\323\344\223\002.\"$/v1/{parent=organizations/*}/s" - + "ources:\006source\022\260\001\n\rCreateFinding\0224.googl" - + "e.cloud.securitycenter.v1.CreateFindingR" + + "ult\022-\n\tread_time\030\002 \001(\0132\032.google.protobuf" + + ".Timestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\nt" + + "otal_size\030\004 \001(\005\"\206\002\n\024GroupFindingsRequest" + + "\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securitycenter" + + ".googleapis.com/Source\022\016\n\006filter\030\002 \001(\t\022\025" + + "\n\010group_by\030\003 \001(\tB\003\340A\002\022-\n\tread_time\030\004 \001(\013" + + "2\032.google.protobuf.Timestamp\0223\n\020compare_" + + "duration\030\005 \001(\0132\031.google.protobuf.Duratio" + + "n\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005" + + "\"\272\001\n\025GroupFindingsResponse\022E\n\020group_by_r" + + "esults\030\001 \003(\0132+.google.cloud.securitycent" + + "er.v1.GroupResult\022-\n\tread_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022\027\n\017next_page_to" + + "ken\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\270\001\n\013GroupR" + + "esult\022O\n\nproperties\030\001 \003(\0132;.google.cloud" + + ".securitycenter.v1.GroupResult.Propertie" + + "sEntry\022\r\n\005count\030\002 \001(\003\032I\n\017PropertiesEntry" + + "\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pr" + + "otobuf.Value:\0028\001\"\205\001\n\022ListSourcesRequest\022" + + "H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcema" + + "nager.googleapis.com/Organization\022\022\n\npag" + + "e_token\030\002 \001(\t\022\021\n\tpage_size\030\007 \001(\005\"g\n\023List" + + "SourcesResponse\0227\n\007sources\030\001 \003(\0132&.googl" + + "e.cloud.securitycenter.v1.Source\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\277\002\n\021ListAssetsRequest\022" + + "H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcema" + + "nager.googleapis.com/Organization\022\016\n\006fil" + + "ter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread_time" + + "\030\004 \001(\0132\032.google.protobuf.Timestamp\0223\n\020co" + + "mpare_duration\030\005 \001(\0132\031.google.protobuf.D" + + "uration\0223\n\nfield_mask\030\007 \001(\0132\032.google.pro" + + "tobuf.FieldMaskB\003\340A\001\022\022\n\npage_token\030\010 \001(\t" + + "\022\021\n\tpage_size\030\t \001(\005\"\303\003\n\022ListAssetsRespon" + + "se\022`\n\023list_assets_results\030\001 \003(\0132C.google" + + ".cloud.securitycenter.v1.ListAssetsRespo" + + "nse.ListAssetsResult\022-\n\tread_time\030\002 \001(\0132" + + "\032.google.protobuf.Timestamp\022\027\n\017next_page" + + "_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\032\356\001\n\020Lis" + + "tAssetsResult\0224\n\005asset\030\001 \001(\0132%.google.cl" + + "oud.securitycenter.v1.Asset\022e\n\014state_cha" + + "nge\030\002 \001(\0162O.google.cloud.securitycenter." + + "v1.ListAssetsResponse.ListAssetsResult.S" + + "tateChange\"=\n\013StateChange\022\n\n\006UNUSED\020\000\022\t\n" + + "\005ADDED\020\001\022\013\n\007REMOVED\020\002\022\n\n\006ACTIVE\020\003\"\265\002\n\023Li" + + "stFindingsRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A" + + "&\n$securitycenter.googleapis.com/Source\022" + + "\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\trea" + + "d_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "\0223\n\020compare_duration\030\005 \001(\0132\031.google.prot" + + "obuf.Duration\0223\n\nfield_mask\030\007 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\003\340A\001\022\022\n\npage_token" + + "\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\311\005\n\024ListFindin" + + "gsResponse\022f\n\025list_findings_results\030\001 \003(" + + "\0132G.google.cloud.securitycenter.v1.ListF" + + "indingsResponse.ListFindingsResult\022-\n\tre" + + "ad_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_size" + + "\030\004 \001(\005\032\354\003\n\022ListFindingsResult\0228\n\007finding" + + "\030\001 \001(\0132\'.google.cloud.securitycenter.v1." + + "Finding\022i\n\014state_change\030\002 \001(\0162S.google.c" + + "loud.securitycenter.v1.ListFindingsRespo" + + "nse.ListFindingsResult.StateChange\022b\n\010re" + + "source\030\003 \001(\0132P.google.cloud.securitycent" + + "er.v1.ListFindingsResponse.ListFindingsR" + + "esult.Resource\032~\n\010Resource\022\014\n\004name\030\001 \001(\t" + + "\022\024\n\014project_name\030\002 \001(\t\022\034\n\024project_displa" + + "y_name\030\003 \001(\t\022\023\n\013parent_name\030\004 \001(\t\022\033\n\023par" + + "ent_display_name\030\005 \001(\t\"M\n\013StateChange\022\n\n" + + "\006UNUSED\020\000\022\013\n\007CHANGED\020\001\022\r\n\tUNCHANGED\020\002\022\t\n" + + "\005ADDED\020\003\022\013\n\007REMOVED\020\004\"\315\001\n\026SetFindingStat" + + "eRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%security" + + "center.googleapis.com/Finding\022A\n\005state\030\002" + + " \001(\0162-.google.cloud.securitycenter.v1.Fi" + + "nding.StateB\003\340A\002\0223\n\nstart_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\002\"d\n\030RunAsse" + + "tDiscoveryRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A" + + "2\n0cloudresourcemanager.googleapis.com/O" + + "rganization\"\206\001\n\024UpdateFindingRequest\022=\n\007" + + "finding\030\001 \001(\0132\'.google.cloud.securitycen" + + "ter.v1.FindingB\003\340A\002\022/\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMask\"\256\001\n!UpdateO" + + "rganizationSettingsRequest\022X\n\025organizati" + + "on_settings\030\001 \001(\01324.google.cloud.securit" + + "ycenter.v1.OrganizationSettingsB\003\340A\002\022/\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMask\"\203\001\n\023UpdateSourceRequest\022;\n\006source\030" + + "\001 \001(\0132&.google.cloud.securitycenter.v1.S" + + "ourceB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMask\"\311\001\n\032UpdateSecurityMa" + + "rksRequest\022J\n\016security_marks\030\001 \001(\0132-.goo" + + "gle.cloud.securitycenter.v1.SecurityMark" + + "sB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMask\022.\n\nstart_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.Timestamp2\236\035\n\016SecurityCent" + + "er\022\261\001\n\014CreateSource\0223.google.cloud.secur" + + "itycenter.v1.CreateSourceRequest\032&.googl" + + "e.cloud.securitycenter.v1.Source\"D\202\323\344\223\002." + + "\"$/v1/{parent=organizations/*}/sources:\006" + + "source\332A\rparent,source\022\314\001\n\rCreateFinding" + + "\0224.google.cloud.securitycenter.v1.Create" + + "FindingRequest\032\'.google.cloud.securityce" + + "nter.v1.Finding\"\\\202\323\344\223\002:\"//v1/{parent=org" + + "anizations/*/sources/*}/findings:\007findin" + + "g\332A\031parent,finding_id,finding\022\226\001\n\014GetIam" + + "Policy\022\".google.iam.v1.GetIamPolicyReque" + + "st\032\025.google.iam.v1.Policy\"K\202\323\344\223\002:\"5/v1/{" + + "resource=organizations/*/sources/*}:getI" + + "amPolicy:\001*\332A\010resource\022\317\001\n\027GetOrganizati" + + "onSettings\022>.google.cloud.securitycenter" + + ".v1.GetOrganizationSettingsRequest\0324.goo" + + "gle.cloud.securitycenter.v1.Organization" + + "Settings\">\202\323\344\223\0021\022//v1/{name=organization" + + "s/*/organizationSettings}\332A\004name\022\232\001\n\tGet" + + "Source\0220.google.cloud.securitycenter.v1." + + "GetSourceRequest\032&.google.cloud.security" + + "center.v1.Source\"3\202\323\344\223\002&\022$/v1/{name=orga" + + "nizations/*/sources/*}\332A\004name\022\254\001\n\013GroupA" + + "ssets\0222.google.cloud.securitycenter.v1.G" + + "roupAssetsRequest\0323.google.cloud.securit" + + "ycenter.v1.GroupAssetsResponse\"4\202\323\344\223\002.\")" + + "/v1/{parent=organizations/*}/assets:grou" + + "p:\001*\022\320\001\n\rGroupFindings\0224.google.cloud.se" + + "curitycenter.v1.GroupFindingsRequest\0325.g" + + "oogle.cloud.securitycenter.v1.GroupFindi" + + "ngsResponse\"R\202\323\344\223\002:\"5/v1/{parent=organiz" + + "ations/*/sources/*}/findings:group:\001*\332A\017" + + "parent,group_by\022\240\001\n\nListAssets\0221.google." + + "cloud.securitycenter.v1.ListAssetsReques" + + "t\0322.google.cloud.securitycenter.v1.ListA" + + "ssetsResponse\"+\202\323\344\223\002%\022#/v1/{parent=organ" + + "izations/*}/assets\022\262\001\n\014ListFindings\0223.go" + + "ogle.cloud.securitycenter.v1.ListFinding" + + "sRequest\0324.google.cloud.securitycenter.v" + + "1.ListFindingsResponse\"7\202\323\344\223\0021\022//v1/{par" + + "ent=organizations/*/sources/*}/findings\022" + + "\255\001\n\013ListSources\0222.google.cloud.securityc" + + "enter.v1.ListSourcesRequest\0323.google.clo" + + "ud.securitycenter.v1.ListSourcesResponse" + + "\"5\202\323\344\223\002&\022$/v1/{parent=organizations/*}/s" + + "ources\332A\006parent\022\207\002\n\021RunAssetDiscovery\0228." + + "google.cloud.securitycenter.v1.RunAssetD" + + "iscoveryRequest\032\035.google.longrunning.Ope" + + "ration\"\230\001\202\323\344\223\0025\"0/v1/{parent=organizatio" + + "ns/*}/assets:runDiscovery:\001*\332A\006parent\312AQ" + + "\n8google.cloud.securitycenter.v1.RunAsse" + + "tDiscoveryResponse\022\025google.protobuf.Empt" + + "y\022\317\001\n\017SetFindingState\0226.google.cloud.sec" + + "uritycenter.v1.SetFindingStateRequest\032\'." + + "google.cloud.securitycenter.v1.Finding\"[" + + "\202\323\344\223\002=\"8/v1/{name=organizations/*/source" + + "s/*/findings/*}:setState:\001*\332A\025name,state" + + ",start_time\022\235\001\n\014SetIamPolicy\022\".google.ia" + + "m.v1.SetIamPolicyRequest\032\025.google.iam.v1" + + ".Policy\"R\202\323\344\223\002:\"5/v1/{resource=organizat" + + "ions/*/sources/*}:setIamPolicy:\001*\332A\017reso" + + "urce,policy\022\310\001\n\022TestIamPermissions\022(.goo" + + "gle.iam.v1.TestIamPermissionsRequest\032).g" + + "oogle.iam.v1.TestIamPermissionsResponse\"" + + "]\202\323\344\223\002@\";/v1/{resource=organizations/*/s" + + "ources/*}:testIamPermissions:\001*\332A\024resour" + + "ce,permissions\022\302\001\n\rUpdateFinding\0224.googl" + + "e.cloud.securitycenter.v1.UpdateFindingR" + "equest\032\'.google.cloud.securitycenter.v1." - + "Finding\"@\202\323\344\223\002:\"//v1/{parent=organizatio" - + "ns/*/sources/*}/findings:\007finding\022\213\001\n\014Ge" - + "tIamPolicy\022\".google.iam.v1.GetIamPolicyR" - + "equest\032\025.google.iam.v1.Policy\"@\202\323\344\223\002:\"5/" - + "v1/{resource=organizations/*/sources/*}:" - + "getIamPolicy:\001*\022\310\001\n\027GetOrganizationSetti" - + "ngs\022>.google.cloud.securitycenter.v1.Get" - + "OrganizationSettingsRequest\0324.google.clo" - + "ud.securitycenter.v1.OrganizationSetting" - + "s\"7\202\323\344\223\0021\022//v1/{name=organizations/*/org" - + "anizationSettings}\022\223\001\n\tGetSource\0220.googl" - + "e.cloud.securitycenter.v1.GetSourceReque" - + "st\032&.google.cloud.securitycenter.v1.Sour" - + "ce\",\202\323\344\223\002&\022$/v1/{name=organizations/*/so" - + "urces/*}\022\254\001\n\013GroupAssets\0222.google.cloud." - + "securitycenter.v1.GroupAssetsRequest\0323.g" - + "oogle.cloud.securitycenter.v1.GroupAsset" - + "sResponse\"4\202\323\344\223\002.\")/v1/{parent=organizat" - + "ions/*}/assets:group:\001*\022\276\001\n\rGroupFinding" - + "s\0224.google.cloud.securitycenter.v1.Group" - + "FindingsRequest\0325.google.cloud.securityc" - + "enter.v1.GroupFindingsResponse\"@\202\323\344\223\002:\"5" - + "/v1/{parent=organizations/*/sources/*}/f" - + "indings:group:\001*\022\240\001\n\nListAssets\0221.google" - + ".cloud.securitycenter.v1.ListAssetsReque" - + "st\0322.google.cloud.securitycenter.v1.List" - + "AssetsResponse\"+\202\323\344\223\002%\022#/v1/{parent=orga" - + "nizations/*}/assets\022\262\001\n\014ListFindings\0223.g" - + "oogle.cloud.securitycenter.v1.ListFindin" - + "gsRequest\0324.google.cloud.securitycenter." - + "v1.ListFindingsResponse\"7\202\323\344\223\0021\022//v1/{pa" - + "rent=organizations/*/sources/*}/findings" - + "\022\244\001\n\013ListSources\0222.google.cloud.security" - + "center.v1.ListSourcesRequest\0323.google.cl" - + "oud.securitycenter.v1.ListSourcesRespons" - + "e\",\202\323\344\223\002&\022$/v1/{parent=organizations/*}/" - + "sources\022\251\001\n\021RunAssetDiscovery\0228.google.c" - + "loud.securitycenter.v1.RunAssetDiscovery" - + "Request\032\035.google.longrunning.Operation\";" - + "\202\323\344\223\0025\"0/v1/{parent=organizations/*}/ass" - + "ets:runDiscovery:\001*\022\267\001\n\017SetFindingState\022" - + "6.google.cloud.securitycenter.v1.SetFind" - + "ingStateRequest\032\'.google.cloud.securityc" - + "enter.v1.Finding\"C\202\323\344\223\002=\"8/v1/{name=orga" - + "nizations/*/sources/*/findings/*}:setSta" - + "te:\001*\022\213\001\n\014SetIamPolicy\022\".google.iam.v1.S" - + "etIamPolicyRequest\032\025.google.iam.v1.Polic" - + "y\"@\202\323\344\223\002:\"5/v1/{resource=organizations/*" - + "/sources/*}:setIamPolicy:\001*\022\261\001\n\022TestIamP" - + "ermissions\022(.google.iam.v1.TestIamPermis" - + "sionsRequest\032).google.iam.v1.TestIamPerm" - + "issionsResponse\"F\202\323\344\223\002@\";/v1/{resource=o" - + "rganizations/*/sources/*}:testIamPermiss" - + "ions:\001*\022\270\001\n\rUpdateFinding\0224.google.cloud" - + ".securitycenter.v1.UpdateFindingRequest\032" - + "\'.google.cloud.securitycenter.v1.Finding" - + "\"H\202\323\344\223\002B27/v1/{finding.name=organization" - + "s/*/sources/*/findings/*}:\007finding\022\373\001\n\032U" - + "pdateOrganizationSettings\022A.google.cloud" - + ".securitycenter.v1.UpdateOrganizationSet" - + "tingsRequest\0324.google.cloud.securitycent" - + "er.v1.OrganizationSettings\"d\202\323\344\223\002^2E/v1/" - + "{organization_settings.name=organization" - + "s/*/organizationSettings}:\025organization_" - + "settings\022\250\001\n\014UpdateSource\0223.google.cloud" - + ".securitycenter.v1.UpdateSourceRequest\032&" - + ".google.cloud.securitycenter.v1.Source\";" - + "\202\323\344\223\00252+/v1/{source.name=organizations/*" - + "/sources/*}:\006source\022\274\002\n\023UpdateSecurityMa" - + "rks\022:.google.cloud.securitycenter.v1.Upd" - + "ateSecurityMarksRequest\032-.google.cloud.s" - + "ecuritycenter.v1.SecurityMarks\"\271\001\202\323\344\223\002\262\001" - + "2@/v1/{security_marks.name=organizations" - + "/*/assets/*/securityMarks}:\016security_mar" - + "ksZ^2L/v1/{security_marks.name=organizat" - + "ions/*/sources/*/findings/*/securityMark" - + "s}:\016security_marksB\332\001\n\"com.google.cloud." - + "securitycenter.v1P\001ZLgoogle.golang.org/g" - + "enproto/googleapis/cloud/securitycenter/" - + "v1;securitycenter\252\002\036Google.Cloud.Securit" - + "yCenter.V1\312\002\036Google\\Cloud\\SecurityCenter" - + "\\V1\352\002!Google::Cloud::SecurityCenter::V1b" - + "\006proto3" + + "Finding\"R\202\323\344\223\002B27/v1/{finding.name=organ" + + "izations/*/sources/*/findings/*}:\007findin" + + "g\332A\007finding\022\223\002\n\032UpdateOrganizationSettin" + + "gs\022A.google.cloud.securitycenter.v1.Upda" + + "teOrganizationSettingsRequest\0324.google.c" + + "loud.securitycenter.v1.OrganizationSetti" + + "ngs\"|\202\323\344\223\002^2E/v1/{organization_settings." + + "name=organizations/*/organizationSetting" + + "s}:\025organization_settings\332A\025organization" + + "_settings\022\261\001\n\014UpdateSource\0223.google.clou" + + "d.securitycenter.v1.UpdateSourceRequest\032" + + "&.google.cloud.securitycenter.v1.Source\"" + + "D\202\323\344\223\00252+/v1/{source.name=organizations/" + + "*/sources/*}:\006source\332A\006source\022\315\002\n\023Update" + + "SecurityMarks\022:.google.cloud.securitycen" + + "ter.v1.UpdateSecurityMarksRequest\032-.goog" + + "le.cloud.securitycenter.v1.SecurityMarks" + + "\"\312\001\202\323\344\223\002\262\0012@/v1/{security_marks.name=org" + + "anizations/*/assets/*/securityMarks}:\016se" + + "curity_marksZ^2L/v1/{security_marks.name" + + "=organizations/*/sources/*/findings/*/se" + + "curityMarks}:\016security_marks\332A\016security_" + + "marks\032Q\312A\035securitycenter.googleapis.com\322" + + "A.https://www.googleapis.com/auth/cloud-" + + "platformB\332\001\n\"com.google.cloud.securityce" + + "nter.v1P\001ZLgoogle.golang.org/genproto/go" + + "ogleapis/cloud/securitycenter/v1;securit" + + "ycenter\252\002\036Google.Cloud.SecurityCenter.V1" + + "\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Goog" + + "le::Cloud::SecurityCenter::V1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.securitycenter.v1.AssetOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1.AssetOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable = @@ -525,7 +554,17 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor, new java.lang.String[] { - "Finding", "StateChange", + "Finding", "StateChange", "Resource", + }); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor = + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor, + new java.lang.String[] { + "Name", "ProjectName", "ProjectDisplayName", "ParentName", "ParentDisplayName", }); internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor = getDescriptor().getMessageTypes().get(15); @@ -577,14 +616,22 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.securitycenter.v1.AssetOuterClass.getDescriptor(); com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(); com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.getDescriptor(); com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(); com.google.iam.v1.IamPolicyProto.getDescriptor(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksName.java index b1755ba2d..1cb48c9e9 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksName.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksName.java @@ -18,7 +18,7 @@ import com.google.api.resourcenames.ResourceName; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public abstract class SecuritymarksName implements ResourceName { protected SecuritymarksName() {} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksNames.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksNames.java index 89358b0ee..cf0d1c063 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksNames.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksNames.java @@ -16,8 +16,13 @@ package com.google.cloud.securitycenter.v1; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * AUTO-GENERATED DOCUMENTATION AND CLASS + * + * @deprecated This resource name class will be removed in the next major version. + */ @javax.annotation.Generated("by GAPIC protoc plugin") +@Deprecated public class SecuritymarksNames { private SecuritymarksNames() {} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java index 0092647a4..34ebe2512 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java @@ -42,6 +42,12 @@ private SetFindingStateRequest() { state_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetFindingStateRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private SetFindingStateRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -135,13 +140,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The relative resource name of the finding. See:
+   * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
    * Example:
-   * "organizations/123/sources/456/finding/789".
+   * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -158,13 +167,17 @@ public java.lang.String getName() { * * *
-   * The relative resource name of the finding. See:
+   * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
    * Example:
-   * "organizations/123/sources/456/finding/789".
+   * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -184,10 +197,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The desired State of the finding.
+   * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; @@ -196,10 +213,14 @@ public int getStateValue() { * * *
-   * The desired State of the finding.
+   * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The state. */ public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") @@ -214,10 +235,13 @@ public com.google.cloud.securitycenter.v1.Finding.State getState() { * * *
-   * The time at which the updated state takes effect.
+   * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -226,10 +250,13 @@ public boolean hasStartTime() { * * *
-   * The time at which the updated state takes effect.
+   * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; @@ -238,10 +265,11 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
-   * The time at which the updated state takes effect.
+   * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return getStartTime(); @@ -614,13 +642,17 @@ public Builder mergeFrom( * * *
-     * The relative resource name of the finding. See:
+     * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * Example:
-     * "organizations/123/sources/456/finding/789".
+     * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -637,13 +669,17 @@ public java.lang.String getName() { * * *
-     * The relative resource name of the finding. See:
+     * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * Example:
-     * "organizations/123/sources/456/finding/789".
+     * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -660,13 +696,18 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The relative resource name of the finding. See:
+     * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * Example:
-     * "organizations/123/sources/456/finding/789".
+     * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -681,13 +722,17 @@ public Builder setName(java.lang.String value) { * * *
-     * The relative resource name of the finding. See:
+     * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * Example:
-     * "organizations/123/sources/456/finding/789".
+     * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -699,13 +744,18 @@ public Builder clearName() { * * *
-     * The relative resource name of the finding. See:
+     * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * Example:
-     * "organizations/123/sources/456/finding/789".
+     * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -723,10 +773,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The desired State of the finding.
+     * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; @@ -735,10 +789,15 @@ public int getStateValue() { * * *
-     * The desired State of the finding.
+     * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; @@ -749,10 +808,14 @@ public Builder setStateValue(int value) { * * *
-     * The desired State of the finding.
+     * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The state. */ public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") @@ -766,10 +829,15 @@ public com.google.cloud.securitycenter.v1.Finding.State getState() { * * *
-     * The desired State of the finding.
+     * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The state to set. + * @return This builder for chaining. */ public Builder setState(com.google.cloud.securitycenter.v1.Finding.State value) { if (value == null) { @@ -784,10 +852,14 @@ public Builder setState(com.google.cloud.securitycenter.v1.Finding.State value) * * *
-     * The desired State of the finding.
+     * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ public Builder clearState() { @@ -806,10 +878,13 @@ public Builder clearState() { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -818,10 +893,13 @@ public boolean hasStartTime() { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { @@ -834,10 +912,11 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -856,10 +935,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { @@ -875,10 +955,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -899,10 +980,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -919,10 +1001,11 @@ public Builder clearStartTime() { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { @@ -933,10 +1016,11 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { @@ -949,10 +1033,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java index 37e33e2b0..a6bdea66f 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java @@ -27,26 +27,34 @@ public interface SetFindingStateRequestOrBuilder * * *
-   * The relative resource name of the finding. See:
+   * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
    * Example:
-   * "organizations/123/sources/456/finding/789".
+   * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ java.lang.String getName(); /** * * *
-   * The relative resource name of the finding. See:
+   * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
    * Example:
-   * "organizations/123/sources/456/finding/789".
+   * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -54,20 +62,28 @@ public interface SetFindingStateRequestOrBuilder * * *
-   * The desired State of the finding.
+   * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for state. */ int getStateValue(); /** * * *
-   * The desired State of the finding.
+   * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The state. */ com.google.cloud.securitycenter.v1.Finding.State getState(); @@ -75,30 +91,37 @@ public interface SetFindingStateRequestOrBuilder * * *
-   * The time at which the updated state takes effect.
+   * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** * * *
-   * The time at which the updated state takes effect.
+   * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** * * *
-   * The time at which the updated state takes effect.
+   * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java index 9c5986011..347c61848 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java @@ -24,7 +24,8 @@ *
  * Cloud Security Command Center's (Cloud SCC) finding source. A finding source
  * is an entity or a mechanism that can produce a finding. A source is like a
- * container of findings that come from the same scanner, logger, monitor, etc.
+ * container of findings that come from the same scanner, logger, monitor, and
+ * other tools.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Source} @@ -45,6 +46,12 @@ private Source() { description_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Source(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -58,7 +65,6 @@ private Source( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -133,10 +139,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -156,10 +164,12 @@ public java.lang.String getName() { * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -179,16 +189,16 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The source’s display name.
-   * A source’s display name must be unique amongst its siblings, for example,
+   * The source's display name.
+   * A source's display name must be unique amongst its siblings, for example,
    * two sources with the same parent can't share the same display name.
-   * The display name must start and end with a letter or digit, may contain
-   * letters, digits, spaces, hyphens, and underscores, and can be no longer
-   * than 32 characters. This is captured by the regular expression:
-   * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+   * The display name must have a length between 1 and 64 characters
+   * (inclusive).
    * 
* * string display_name = 2; + * + * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; @@ -205,16 +215,16 @@ public java.lang.String getDisplayName() { * * *
-   * The source’s display name.
-   * A source’s display name must be unique amongst its siblings, for example,
+   * The source's display name.
+   * A source's display name must be unique amongst its siblings, for example,
    * two sources with the same parent can't share the same display name.
-   * The display name must start and end with a letter or digit, may contain
-   * letters, digits, spaces, hyphens, and underscores, and can be no longer
-   * than 32 characters. This is captured by the regular expression:
-   * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+   * The display name must have a length between 1 and 64 characters
+   * (inclusive).
    * 
* * string display_name = 2; + * + * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; @@ -236,14 +246,16 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { *
    * The description of the source (max of 1024 characters).
    * Example:
-   * "Cloud Security Scanner is a web security scanner for common
+   * "Web Security Scanner is a web security scanner for common
    * vulnerabilities in App Engine applications. It can automatically
    * scan and detect four common vulnerabilities, including cross-site-scripting
    * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
-   * outdated/insecure libraries."
+   * outdated or insecure libraries."
    * 
* * string description = 3; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -262,14 +274,16 @@ public java.lang.String getDescription() { *
    * The description of the source (max of 1024 characters).
    * Example:
-   * "Cloud Security Scanner is a web security scanner for common
+   * "Web Security Scanner is a web security scanner for common
    * vulnerabilities in App Engine applications. It can automatically
    * scan and detect four common vulnerabilities, including cross-site-scripting
    * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
-   * outdated/insecure libraries."
+   * outdated or insecure libraries."
    * 
* * string description = 3; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -466,7 +480,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * Cloud Security Command Center's (Cloud SCC) finding source. A finding source
    * is an entity or a mechanism that can produce a finding. A source is like a
-   * container of findings that come from the same scanner, logger, monitor, etc.
+   * container of findings that come from the same scanner, logger, monitor, and
+   * other tools.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Source} @@ -641,10 +656,12 @@ public Builder mergeFrom( * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -664,10 +681,12 @@ public java.lang.String getName() { * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -687,10 +706,13 @@ public com.google.protobuf.ByteString getNameBytes() { * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -708,10 +730,12 @@ public Builder setName(java.lang.String value) { * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -726,10 +750,13 @@ public Builder clearName() { * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -747,16 +774,16 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The source’s display name.
-     * A source’s display name must be unique amongst its siblings, for example,
+     * The source's display name.
+     * A source's display name must be unique amongst its siblings, for example,
      * two sources with the same parent can't share the same display name.
-     * The display name must start and end with a letter or digit, may contain
-     * letters, digits, spaces, hyphens, and underscores, and can be no longer
-     * than 32 characters. This is captured by the regular expression:
-     * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+     * The display name must have a length between 1 and 64 characters
+     * (inclusive).
      * 
* * string display_name = 2; + * + * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; @@ -773,16 +800,16 @@ public java.lang.String getDisplayName() { * * *
-     * The source’s display name.
-     * A source’s display name must be unique amongst its siblings, for example,
+     * The source's display name.
+     * A source's display name must be unique amongst its siblings, for example,
      * two sources with the same parent can't share the same display name.
-     * The display name must start and end with a letter or digit, may contain
-     * letters, digits, spaces, hyphens, and underscores, and can be no longer
-     * than 32 characters. This is captured by the regular expression:
-     * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+     * The display name must have a length between 1 and 64 characters
+     * (inclusive).
      * 
* * string display_name = 2; + * + * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; @@ -799,16 +826,17 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * The source’s display name.
-     * A source’s display name must be unique amongst its siblings, for example,
+     * The source's display name.
+     * A source's display name must be unique amongst its siblings, for example,
      * two sources with the same parent can't share the same display name.
-     * The display name must start and end with a letter or digit, may contain
-     * letters, digits, spaces, hyphens, and underscores, and can be no longer
-     * than 32 characters. This is captured by the regular expression:
-     * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+     * The display name must have a length between 1 and 64 characters
+     * (inclusive).
      * 
* * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. */ public Builder setDisplayName(java.lang.String value) { if (value == null) { @@ -823,16 +851,16 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * The source’s display name.
-     * A source’s display name must be unique amongst its siblings, for example,
+     * The source's display name.
+     * A source's display name must be unique amongst its siblings, for example,
      * two sources with the same parent can't share the same display name.
-     * The display name must start and end with a letter or digit, may contain
-     * letters, digits, spaces, hyphens, and underscores, and can be no longer
-     * than 32 characters. This is captured by the regular expression:
-     * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+     * The display name must have a length between 1 and 64 characters
+     * (inclusive).
      * 
* * string display_name = 2; + * + * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -844,16 +872,17 @@ public Builder clearDisplayName() { * * *
-     * The source’s display name.
-     * A source’s display name must be unique amongst its siblings, for example,
+     * The source's display name.
+     * A source's display name must be unique amongst its siblings, for example,
      * two sources with the same parent can't share the same display name.
-     * The display name must start and end with a letter or digit, may contain
-     * letters, digits, spaces, hyphens, and underscores, and can be no longer
-     * than 32 characters. This is captured by the regular expression:
-     * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+     * The display name must have a length between 1 and 64 characters
+     * (inclusive).
      * 
* * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -873,14 +902,16 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { *
      * The description of the source (max of 1024 characters).
      * Example:
-     * "Cloud Security Scanner is a web security scanner for common
+     * "Web Security Scanner is a web security scanner for common
      * vulnerabilities in App Engine applications. It can automatically
      * scan and detect four common vulnerabilities, including cross-site-scripting
      * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
-     * outdated/insecure libraries."
+     * outdated or insecure libraries."
      * 
* * string description = 3; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -899,14 +930,16 @@ public java.lang.String getDescription() { *
      * The description of the source (max of 1024 characters).
      * Example:
-     * "Cloud Security Scanner is a web security scanner for common
+     * "Web Security Scanner is a web security scanner for common
      * vulnerabilities in App Engine applications. It can automatically
      * scan and detect four common vulnerabilities, including cross-site-scripting
      * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
-     * outdated/insecure libraries."
+     * outdated or insecure libraries."
      * 
* * string description = 3; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -925,14 +958,17 @@ public com.google.protobuf.ByteString getDescriptionBytes() { *
      * The description of the source (max of 1024 characters).
      * Example:
-     * "Cloud Security Scanner is a web security scanner for common
+     * "Web Security Scanner is a web security scanner for common
      * vulnerabilities in App Engine applications. It can automatically
      * scan and detect four common vulnerabilities, including cross-site-scripting
      * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
-     * outdated/insecure libraries."
+     * outdated or insecure libraries."
      * 
* * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { @@ -949,14 +985,16 @@ public Builder setDescription(java.lang.String value) { *
      * The description of the source (max of 1024 characters).
      * Example:
-     * "Cloud Security Scanner is a web security scanner for common
+     * "Web Security Scanner is a web security scanner for common
      * vulnerabilities in App Engine applications. It can automatically
      * scan and detect four common vulnerabilities, including cross-site-scripting
      * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
-     * outdated/insecure libraries."
+     * outdated or insecure libraries."
      * 
* * string description = 3; + * + * @return This builder for chaining. */ public Builder clearDescription() { @@ -970,14 +1008,17 @@ public Builder clearDescription() { *
      * The description of the source (max of 1024 characters).
      * Example:
-     * "Cloud Security Scanner is a web security scanner for common
+     * "Web Security Scanner is a web security scanner for common
      * vulnerabilities in App Engine applications. It can automatically
      * scan and detect four common vulnerabilities, including cross-site-scripting
      * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
-     * outdated/insecure libraries."
+     * outdated or insecure libraries."
      * 
* * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java index de4cf2a8c..21ea71209 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class SourceName implements ResourceName { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java index 9111122b1..9422842dd 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java @@ -30,10 +30,12 @@ public interface SourceOrBuilder * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -43,10 +45,12 @@ public interface SourceOrBuilder * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -54,32 +58,32 @@ public interface SourceOrBuilder * * *
-   * The source’s display name.
-   * A source’s display name must be unique amongst its siblings, for example,
+   * The source's display name.
+   * A source's display name must be unique amongst its siblings, for example,
    * two sources with the same parent can't share the same display name.
-   * The display name must start and end with a letter or digit, may contain
-   * letters, digits, spaces, hyphens, and underscores, and can be no longer
-   * than 32 characters. This is captured by the regular expression:
-   * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+   * The display name must have a length between 1 and 64 characters
+   * (inclusive).
    * 
* * string display_name = 2; + * + * @return The displayName. */ java.lang.String getDisplayName(); /** * * *
-   * The source’s display name.
-   * A source’s display name must be unique amongst its siblings, for example,
+   * The source's display name.
+   * A source's display name must be unique amongst its siblings, for example,
    * two sources with the same parent can't share the same display name.
-   * The display name must start and end with a letter or digit, may contain
-   * letters, digits, spaces, hyphens, and underscores, and can be no longer
-   * than 32 characters. This is captured by the regular expression:
-   * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?.
+   * The display name must have a length between 1 and 64 characters
+   * (inclusive).
    * 
* * string display_name = 2; + * + * @return The bytes for displayName. */ com.google.protobuf.ByteString getDisplayNameBytes(); @@ -89,14 +93,16 @@ public interface SourceOrBuilder *
    * The description of the source (max of 1024 characters).
    * Example:
-   * "Cloud Security Scanner is a web security scanner for common
+   * "Web Security Scanner is a web security scanner for common
    * vulnerabilities in App Engine applications. It can automatically
    * scan and detect four common vulnerabilities, including cross-site-scripting
    * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
-   * outdated/insecure libraries."
+   * outdated or insecure libraries."
    * 
* * string description = 3; + * + * @return The description. */ java.lang.String getDescription(); /** @@ -105,14 +111,16 @@ public interface SourceOrBuilder *
    * The description of the source (max of 1024 characters).
    * Example:
-   * "Cloud Security Scanner is a web security scanner for common
+   * "Web Security Scanner is a web security scanner for common
    * vulnerabilities in App Engine applications. It can automatically
    * scan and detect four common vulnerabilities, including cross-site-scripting
    * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
-   * outdated/insecure libraries."
+   * outdated or insecure libraries."
    * 
* * string description = 3; + * + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java index 17f729db7..6f69c7184 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java @@ -41,31 +41,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n+google/cloud/securitycenter/v1/source." - + "proto\022\036google.cloud.securitycenter.v1\032\034g" - + "oogle/api/annotations.proto\"G\n\006Source\022\014\n" - + "\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013des" - + "cription\030\003 \001(\tJ\004\010\004\020\005B\332\001\n\"com.google.clou" - + "d.securitycenter.v1P\001ZLgoogle.golang.org" - + "/genproto/googleapis/cloud/securitycente" - + "r/v1;securitycenter\252\002\036Google.Cloud.Secur" - + "ityCenter.V1\312\002\036Google\\Cloud\\SecurityCent" - + "er\\V1\352\002!Google::Cloud::SecurityCenter::V" - + "1b\006proto3" + + "proto\022\036google.cloud.securitycenter.v1\032\031g" + + "oogle/api/resource.proto\032\034google/api/ann" + + "otations.proto\"\233\001\n\006Source\022\014\n\004name\030\001 \001(\t\022" + + "\024\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003 \001" + + "(\t:X\352AU\n$securitycenter.googleapis.com/S" + + "ource\022-organizations/{organization}/sour" + + "ces/{source}B\332\001\n\"com.google.cloud.securi" + + "tycenter.v1P\001ZLgoogle.golang.org/genprot" + + "o/googleapis/cloud/securitycenter/v1;sec" + + "uritycenter\252\002\036Google.Cloud.SecurityCente" + + "r.V1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!" + + "Google::Cloud::SecurityCenter::V1b\006proto" + + "3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_securitycenter_v1_Source_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable = @@ -74,6 +70,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Name", "DisplayName", "Description", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UntypedSecuritymarksName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UntypedSecuritymarksName.java index a1c4f9543..5734782b7 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UntypedSecuritymarksName.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UntypedSecuritymarksName.java @@ -23,8 +23,13 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * AUTO-GENERATED DOCUMENTATION AND CLASS + * + * @deprecated This resource name class will be removed in the next major version. + */ @javax.annotation.Generated("by GAPIC protoc plugin") +@Deprecated public class UntypedSecuritymarksName extends SecuritymarksName { private final String rawValue; diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java index cb7db4860..319bbb09e 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java @@ -39,6 +39,12 @@ private UpdateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder b private UpdateFindingRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateFindingRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private UpdateFindingRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -134,14 +139,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The finding resource to update or create if it does not already exist.
+   * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
    * In the case of creation, the finding id portion of the name must be
    * alphanumeric and less than or equal to 32 characters and greater than 0
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the finding field is set. */ public boolean hasFinding() { return finding_ != null; @@ -150,14 +159,18 @@ public boolean hasFinding() { * * *
-   * The finding resource to update or create if it does not already exist.
+   * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
    * In the case of creation, the finding id portion of the name must be
    * alphanumeric and less than or equal to 32 characters and greater than 0
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The finding. */ public com.google.cloud.securitycenter.v1.Finding getFinding() { return finding_ == null @@ -168,14 +181,16 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() { * * *
-   * The finding resource to update or create if it does not already exist.
+   * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
    * In the case of creation, the finding id portion of the name must be
    * alphanumeric and less than or equal to 32 characters and greater than 0
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { return getFinding(); @@ -196,6 +211,8 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -213,6 +230,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -604,14 +623,18 @@ public Builder mergeFrom( * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must be
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; @@ -620,14 +643,18 @@ public boolean hasFinding() { * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must be
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The finding. */ public com.google.cloud.securitycenter.v1.Finding getFinding() { if (findingBuilder_ == null) { @@ -642,14 +669,16 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() { * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must be
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { @@ -668,14 +697,16 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must be
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) { if (findingBuilder_ == null) { @@ -691,14 +722,16 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder bui * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must be
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { @@ -721,14 +754,16 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must be
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -745,14 +780,16 @@ public Builder clearFinding() { * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must be
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() { @@ -763,14 +800,16 @@ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() { * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must be
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { @@ -785,14 +824,16 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must be
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Finding, @@ -830,6 +871,8 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -847,6 +890,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java index 64e08d788..ef203066f 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java @@ -27,42 +27,52 @@ public interface UpdateFindingRequestOrBuilder * * *
-   * The finding resource to update or create if it does not already exist.
+   * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
    * In the case of creation, the finding id portion of the name must be
    * alphanumeric and less than or equal to 32 characters and greater than 0
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the finding field is set. */ boolean hasFinding(); /** * * *
-   * The finding resource to update or create if it does not already exist.
+   * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
    * In the case of creation, the finding id portion of the name must be
    * alphanumeric and less than or equal to 32 characters and greater than 0
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The finding. */ com.google.cloud.securitycenter.v1.Finding getFinding(); /** * * *
-   * The finding resource to update or create if it does not already exist.
+   * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
    * In the case of creation, the finding id portion of the name must be
    * alphanumeric and less than or equal to 32 characters and greater than 0
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder(); @@ -79,6 +89,8 @@ public interface UpdateFindingRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -94,6 +106,8 @@ public interface UpdateFindingRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java index 412d50dd5..d4c22ed56 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java @@ -40,6 +40,12 @@ private UpdateOrganizationSettingsRequest( private UpdateOrganizationSettingsRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateOrganizationSettingsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -53,7 +59,6 @@ private UpdateOrganizationSettingsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -136,10 +141,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The organization settings resource to update.
+   * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the organizationSettings field is set. */ public boolean hasOrganizationSettings() { return organizationSettings_ != null; @@ -148,10 +157,14 @@ public boolean hasOrganizationSettings() { * * *
-   * The organization settings resource to update.
+   * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The organizationSettings. */ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings() { return organizationSettings_ == null @@ -162,10 +175,12 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSe * * *
-   * The organization settings resource to update.
+   * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder() { @@ -183,6 +198,8 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSe * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -196,6 +213,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -592,10 +611,14 @@ public Builder mergeFrom( * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the organizationSettings field is set. */ public boolean hasOrganizationSettings() { return organizationSettingsBuilder_ != null || organizationSettings_ != null; @@ -604,10 +627,14 @@ public boolean hasOrganizationSettings() { * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The organizationSettings. */ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings() { if (organizationSettingsBuilder_ == null) { @@ -622,10 +649,12 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSe * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOrganizationSettings( com.google.cloud.securitycenter.v1.OrganizationSettings value) { @@ -645,10 +674,12 @@ public Builder setOrganizationSettings( * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOrganizationSettings( com.google.cloud.securitycenter.v1.OrganizationSettings.Builder builderForValue) { @@ -665,10 +696,12 @@ public Builder setOrganizationSettings( * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOrganizationSettings( com.google.cloud.securitycenter.v1.OrganizationSettings value) { @@ -693,10 +726,12 @@ public Builder mergeOrganizationSettings( * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOrganizationSettings() { if (organizationSettingsBuilder_ == null) { @@ -713,10 +748,12 @@ public Builder clearOrganizationSettings() { * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.OrganizationSettings.Builder getOrganizationSettingsBuilder() { @@ -728,10 +765,12 @@ public Builder clearOrganizationSettings() { * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder() { @@ -747,10 +786,12 @@ public Builder clearOrganizationSettings() { * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.OrganizationSettings, @@ -784,6 +825,8 @@ public Builder clearOrganizationSettings() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -797,6 +840,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java index db98298a7..1fc14b8fa 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java @@ -27,30 +27,40 @@ public interface UpdateOrganizationSettingsRequestOrBuilder * * *
-   * The organization settings resource to update.
+   * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the organizationSettings field is set. */ boolean hasOrganizationSettings(); /** * * *
-   * The organization settings resource to update.
+   * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The organizationSettings. */ com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings(); /** * * *
-   * The organization settings resource to update.
+   * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder(); @@ -64,6 +74,8 @@ public interface UpdateOrganizationSettingsRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -75,6 +87,8 @@ public interface UpdateOrganizationSettingsRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java index cb52e4750..c046acfed 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java @@ -39,6 +39,12 @@ private UpdateSecurityMarksRequest(com.google.protobuf.GeneratedMessageV3.Builde private UpdateSecurityMarksRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSecurityMarksRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private UpdateSecurityMarksRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -149,10 +154,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The security marks resource to update.
+   * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarks_ != null; @@ -161,10 +170,14 @@ public boolean hasSecurityMarks() { * * *
-   * The security marks resource to update.
+   * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityMarks. */ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { return securityMarks_ == null @@ -175,10 +188,12 @@ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { * * *
-   * The security marks resource to update.
+   * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { return getSecurityMarks(); @@ -197,6 +212,8 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -212,6 +229,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -244,6 +263,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -258,6 +279,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; @@ -677,10 +700,14 @@ public Builder mergeFrom( * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; @@ -689,10 +716,14 @@ public boolean hasSecurityMarks() { * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityMarks. */ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -707,10 +738,12 @@ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -729,10 +762,12 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1.SecurityMarks.Builder builderForValue) { @@ -749,10 +784,12 @@ public Builder setSecurityMarks( * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -775,10 +812,12 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMar * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -795,10 +834,12 @@ public Builder clearSecurityMarks() { * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.SecurityMarks.Builder getSecurityMarksBuilder() { @@ -809,10 +850,12 @@ public com.google.cloud.securitycenter.v1.SecurityMarks.Builder getSecurityMarks * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { if (securityMarksBuilder_ != null) { @@ -827,10 +870,12 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.SecurityMarks, @@ -866,6 +911,8 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -881,6 +928,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { @@ -1071,6 +1120,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -1085,6 +1136,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java index 1a267a679..e97377930 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java @@ -27,30 +27,40 @@ public interface UpdateSecurityMarksRequestOrBuilder * * *
-   * The security marks resource to update.
+   * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** * * *
-   * The security marks resource to update.
+   * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityMarks. */ com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks(); /** * * *
-   * The security marks resource to update.
+   * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); @@ -65,6 +75,8 @@ public interface UpdateSecurityMarksRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -78,6 +90,8 @@ public interface UpdateSecurityMarksRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** @@ -104,6 +118,8 @@ public interface UpdateSecurityMarksRequestOrBuilder * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** @@ -116,6 +132,8 @@ public interface UpdateSecurityMarksRequestOrBuilder * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java index 83f70a881..068a8c5bf 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java @@ -39,6 +39,12 @@ private UpdateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder bu private UpdateSourceRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSourceRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private UpdateSourceRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -134,10 +139,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The source resource to update.
+   * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 1; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. */ public boolean hasSource() { return source_ != null; @@ -146,10 +155,14 @@ public boolean hasSource() { * * *
-   * The source resource to update.
+   * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 1; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. */ public com.google.cloud.securitycenter.v1.Source getSource() { return source_ == null @@ -160,10 +173,12 @@ public com.google.cloud.securitycenter.v1.Source getSource() { * * *
-   * The source resource to update.
+   * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 1; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { return getSource(); @@ -180,6 +195,8 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -193,6 +210,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -580,10 +599,14 @@ public Builder mergeFrom( * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; @@ -592,10 +615,14 @@ public boolean hasSource() { * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. */ public com.google.cloud.securitycenter.v1.Source getSource() { if (sourceBuilder_ == null) { @@ -610,10 +637,12 @@ public com.google.cloud.securitycenter.v1.Source getSource() { * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource(com.google.cloud.securitycenter.v1.Source value) { if (sourceBuilder_ == null) { @@ -632,10 +661,12 @@ public Builder setSource(com.google.cloud.securitycenter.v1.Source value) { * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource(com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { if (sourceBuilder_ == null) { @@ -651,10 +682,12 @@ public Builder setSource(com.google.cloud.securitycenter.v1.Source.Builder build * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSource(com.google.cloud.securitycenter.v1.Source value) { if (sourceBuilder_ == null) { @@ -677,10 +710,12 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1.Source value) { * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -697,10 +732,12 @@ public Builder clearSource() { * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.Source.Builder getSourceBuilder() { @@ -711,10 +748,12 @@ public com.google.cloud.securitycenter.v1.Source.Builder getSourceBuilder() { * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { @@ -729,10 +768,12 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Source, @@ -766,6 +807,8 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -779,6 +822,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java index c9f59c0f6..38bd5cb68 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java @@ -27,30 +27,40 @@ public interface UpdateSourceRequestOrBuilder * * *
-   * The source resource to update.
+   * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 1; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. */ boolean hasSource(); /** * * *
-   * The source resource to update.
+   * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 1; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. */ com.google.cloud.securitycenter.v1.Source getSource(); /** * * *
-   * The source resource to update.
+   * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 1; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder(); @@ -63,6 +73,8 @@ public interface UpdateSourceRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -74,6 +86,8 @@ public interface UpdateSourceRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto index 74ec9b213..bd4751a14 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto +++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto @@ -17,10 +17,11 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; -import "google/api/annotations.proto"; +import "google/api/resource.proto"; import "google/cloud/securitycenter/v1/security_marks.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; @@ -36,6 +37,11 @@ option ruby_package = "Google::Cloud::SecurityCenter::V1"; // GCP resource. All modifications to an Asset are only within the context of // Cloud SCC and don't affect the referenced GCP resource. message Asset { + option (google.api.resource) = { + type: "securitycenter.googleapis.com/Asset" + pattern: "organizations/{organization}/assets/{asset}" + }; + // Cloud SCC managed properties. These properties are managed by Cloud SCC and // cannot be modified by the user. message SecurityCenterProperties { @@ -60,6 +66,15 @@ message Asset { // Owners of the Google Cloud resource. repeated string resource_owners = 5; + + // The user defined display name for this resource. + string resource_display_name = 6; + + // The user defined display name for the parent of this resource. + string resource_parent_display_name = 7; + + // The user defined display name for the project of this resource. + string resource_project_display_name = 8; } // IAM Policy information associated with the GCP resource described by the @@ -75,7 +90,7 @@ message Asset { // The relative resource name of this asset. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: - // "organizations/123/assets/456". + // "organizations/{organization_id}/assets/{asset_id}". string name = 1; // Cloud SCC managed properties. These properties are managed by diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto index e75247e88..5d8e5a789 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto +++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto @@ -17,10 +17,12 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; -import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/securitycenter/v1/security_marks.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; @@ -31,11 +33,17 @@ option ruby_package = "Google::Cloud::SecurityCenter::V1"; // Cloud Security Command Center (Cloud SCC) finding. // -// A finding is a record of assessment data (security, risk, health or privacy) -// ingested into Cloud SCC for presentation, notification, analysis, -// policy testing, and enforcement. For example, an XSS vulnerability in an -// App Engine application is a finding. +// A finding is a record of assessment data like security, risk, health, or +// privacy, that is ingested into Cloud SCC for presentation, notification, +// analysis, policy testing, and enforcement. For example, a +// cross-site scripting (XSS) vulnerability in an App Engine application is a +// finding. message Finding { + option (google.api.resource) = { + type: "securitycenter.googleapis.com/Finding" + pattern: "organizations/{organization}/sources/{source}/findings/{finding}" + }; + // The state of the finding. enum State { // Unspecified state. @@ -52,19 +60,21 @@ message Finding { // The relative resource name of this finding. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: - // "organizations/123/sources/456/findings/789" + // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" string name = 1; // The relative resource name of the source the finding belongs to. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // This field is immutable after creation time. // For example: - // "organizations/123/sources/456" + // "organizations/{organization_id}/sources/{source_id}" string parent = 2; - // The full resource name of the Google Cloud Platform (GCP) resource this - // finding is for. See: + // For findings on Google Cloud Platform (GCP) resources, the full resource + // name of the GCP resource this finding is for. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name + // When the finding is for a non-GCP resource, the resourceName can be a + // customer or partner defined string. // This field is immutable after creation time. string resource_name = 3; @@ -90,11 +100,11 @@ message Finding { // Output only. User specified security marks. These marks are entirely // managed by the user and come from the SecurityMarks resource that belongs // to the finding. - SecurityMarks security_marks = 8; + SecurityMarks security_marks = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // The time at which the event took place. For example, if the finding - // represents an open firewall it would capture the time the open firewall was - // detected. + // represents an open firewall it would capture the time the detector believes + // the firewall became open. The accuracy is determined by the detector. google.protobuf.Timestamp event_time = 9; // The time at which the finding was created in Cloud SCC. diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto index e975e566c..aa4e80bd1 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto +++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; +import "google/api/resource.proto"; import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; @@ -29,6 +30,11 @@ option ruby_package = "Google::Cloud::SecurityCenter::V1"; // User specified settings that are attached to the Cloud Security Command // Center (Cloud SCC) organization. message OrganizationSettings { + option (google.api.resource) = { + type: "securitycenter.googleapis.com/OrganizationSettings" + pattern: "organizations/{organization}/organizationSettings" + }; + // The configuration used for Asset Discovery runs. message AssetDiscoveryConfig { // The mode of inclusion when running Asset Discovery. @@ -63,7 +69,7 @@ message OrganizationSettings { // The relative resource name of the settings. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: - // "organizations/123/organizationSettings". + // "organizations/{organization_id}/organizationSettings". string name = 1; // A flag that indicates if Asset Discovery should be enabled. If the flag is @@ -74,6 +80,4 @@ message OrganizationSettings { // The configuration used for Asset Discovery runs. AssetDiscoveryConfig asset_discovery_config = 3; - - reserved 4, 5; } diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto index 1cbba38e7..e7581078d 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto +++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto @@ -18,7 +18,6 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto index 97b3f9377..d2b534874 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto +++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; +import "google/api/resource.proto"; import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; @@ -31,19 +32,26 @@ option ruby_package = "Google::Cloud::SecurityCenter::V1"; // SCC organization -- they can be modified and viewed by all users who have // proper permissions on the organization. message SecurityMarks { + option (google.api.resource) = { + type: "securitycenter.googleapis.com/SecurityMarks" + pattern: "organizations/{organization}/assets/{asset}/securityMarks" + pattern: "organizations/{organization}/sources/{source}/findings/{finding}/securityMarks" + }; + // The relative resource name of the SecurityMarks. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Examples: - // "organizations/123/assets/456/securityMarks" - // "organizations/123/sources/456/findings/789/securityMarks". + // "organizations/{organization_id}/assets/{asset_id}/securityMarks" + // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". string name = 1; // Mutable user specified security marks belonging to the parent resource. // Constraints are as follows: - // - Keys and values are treated as case insensitive - // - Keys must be between 1 - 256 characters (inclusive) - // - Keys must be letters, numbers, underscores, or dashes - // - Values have leading and trailing whitespace trimmed, remaining + // + // * Keys and values are treated as case insensitive + // * Keys must be between 1 - 256 characters (inclusive) + // * Keys must be letters, numbers, underscores, or dashes + // * Values have leading and trailing whitespace trimmed, remaining // characters must be between 1 - 4096 characters (inclusive) map marks = 2; } diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto index 0687928f3..1cd1aff20 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto +++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto @@ -18,10 +18,12 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/securitycenter/v1/asset.proto"; import "google/cloud/securitycenter/v1/finding.proto"; import "google/cloud/securitycenter/v1/organization_settings.proto"; -import "google/cloud/securitycenter/v1/run_asset_discovery_response.proto"; import "google/cloud/securitycenter/v1/security_marks.proto"; import "google/cloud/securitycenter/v1/source.proto"; import "google/iam/v1/iam_policy.proto"; @@ -42,12 +44,16 @@ option ruby_package = "Google::Cloud::SecurityCenter::V1"; // V1 APIs for Security Center service. service SecurityCenter { + option (google.api.default_host) = "securitycenter.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + // Creates a source. rpc CreateSource(CreateSourceRequest) returns (Source) { option (google.api.http) = { post: "/v1/{parent=organizations/*}/sources" body: "source" }; + option (google.api.method_signature) = "parent,source"; } // Creates a finding. The corresponding source must exist for finding creation @@ -57,23 +63,24 @@ service SecurityCenter { post: "/v1/{parent=organizations/*/sources/*}/findings" body: "finding" }; + option (google.api.method_signature) = "parent,finding_id,finding"; } // Gets the access control policy on the specified Source. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) - returns (google.iam.v1.Policy) { + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1/{resource=organizations/*/sources/*}:getIamPolicy" body: "*" }; + option (google.api.method_signature) = "resource"; } // Gets the settings for an organization. - rpc GetOrganizationSettings(GetOrganizationSettingsRequest) - returns (OrganizationSettings) { + rpc GetOrganizationSettings(GetOrganizationSettingsRequest) returns (OrganizationSettings) { option (google.api.http) = { get: "/v1/{name=organizations/*/organizationSettings}" }; + option (google.api.method_signature) = "name"; } // Gets a source. @@ -81,6 +88,7 @@ service SecurityCenter { option (google.api.http) = { get: "/v1/{name=organizations/*/sources/*}" }; + option (google.api.method_signature) = "name"; } // Filters an organization's assets and groups them by their specified @@ -96,12 +104,13 @@ service SecurityCenter { // specified properties. // // To group across all sources provide a `-` as the source id. - // Example: /v1/organizations/123/sources/-/findings + // Example: /v1/organizations/{organization_id}/sources/-/findings rpc GroupFindings(GroupFindingsRequest) returns (GroupFindingsResponse) { option (google.api.http) = { post: "/v1/{parent=organizations/*/sources/*}/findings:group" body: "*" }; + option (google.api.method_signature) = "parent,group_by"; } // Lists an organization's assets. @@ -114,7 +123,7 @@ service SecurityCenter { // Lists an organization or source's findings. // // To list across all sources provide a `-` as the source id. - // Example: /v1/organizations/123/sources/-/findings + // Example: /v1/organizations/{organization_id}/sources/-/findings rpc ListFindings(ListFindingsRequest) returns (ListFindingsResponse) { option (google.api.http) = { get: "/v1/{parent=organizations/*/sources/*}/findings" @@ -126,6 +135,7 @@ service SecurityCenter { option (google.api.http) = { get: "/v1/{parent=organizations/*}/sources" }; + option (google.api.method_signature) = "parent"; } // Runs asset discovery. The discovery is tracked with a long-running @@ -134,12 +144,16 @@ service SecurityCenter { // This API can only be called with limited frequency for an organization. If // it is called too frequently the caller will receive a TOO_MANY_REQUESTS // error. - rpc RunAssetDiscovery(RunAssetDiscoveryRequest) - returns (google.longrunning.Operation) { + rpc RunAssetDiscovery(RunAssetDiscoveryRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=organizations/*}/assets:runDiscovery" body: "*" }; + option (google.api.method_signature) = "parent"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.securitycenter.v1.RunAssetDiscoveryResponse" + metadata_type: "google.protobuf.Empty" + }; } // Updates the state of a finding. @@ -148,24 +162,25 @@ service SecurityCenter { post: "/v1/{name=organizations/*/sources/*/findings/*}:setState" body: "*" }; + option (google.api.method_signature) = "name,state,start_time"; } // Sets the access control policy on the specified Source. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) - returns (google.iam.v1.Policy) { + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1/{resource=organizations/*/sources/*}:setIamPolicy" body: "*" }; + option (google.api.method_signature) = "resource,policy"; } // Returns the permissions that a caller has on the specified source. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) - returns (google.iam.v1.TestIamPermissionsResponse) { + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { option (google.api.http) = { post: "/v1/{resource=organizations/*/sources/*}:testIamPermissions" body: "*" }; + option (google.api.method_signature) = "resource,permissions"; } // Creates or updates a finding. The corresponding source must exist for a @@ -175,15 +190,16 @@ service SecurityCenter { patch: "/v1/{finding.name=organizations/*/sources/*/findings/*}" body: "finding" }; + option (google.api.method_signature) = "finding"; } // Updates an organization's settings. - rpc UpdateOrganizationSettings(UpdateOrganizationSettingsRequest) - returns (OrganizationSettings) { + rpc UpdateOrganizationSettings(UpdateOrganizationSettingsRequest) returns (OrganizationSettings) { option (google.api.http) = { patch: "/v1/{organization_settings.name=organizations/*/organizationSettings}" body: "organization_settings" }; + option (google.api.method_signature) = "organization_settings"; } // Updates a source. @@ -192,6 +208,7 @@ service SecurityCenter { patch: "/v1/{source.name=organizations/*/sources/*}" body: "source" }; + option (google.api.method_signature) = "source"; } // Updates security marks. @@ -204,55 +221,81 @@ service SecurityCenter { body: "security_marks" } }; + option (google.api.method_signature) = "security_marks"; } } // Request message for creating a finding. message CreateFindingRequest { - // Resource name of the new finding's parent. Its format should be + // Required. Resource name of the new finding's parent. Its format should be // "organizations/[organization_id]/sources/[source_id]". - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/Source" + } + ]; - // Unique identifier provided by the client within the parent scope. + // Required. Unique identifier provided by the client within the parent scope. // It must be alphanumeric and less than or equal to 32 characters and // greater than 0 characters in length. - string finding_id = 2; + string finding_id = 2 [(google.api.field_behavior) = REQUIRED]; - // The Finding being created. The name and security_marks will be ignored as + // Required. The Finding being created. The name and security_marks will be ignored as // they are both output only fields on this resource. - Finding finding = 3; + Finding finding = 3 [(google.api.field_behavior) = REQUIRED]; } // Request message for creating a source. message CreateSourceRequest { - // Resource name of the new source's parent. Its format should be + // Required. Resource name of the new source's parent. Its format should be // "organizations/[organization_id]". - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Organization" + } + ]; - // The Source being created, only the display_name and description will be + // Required. The Source being created, only the display_name and description will be // used. All other fields will be ignored. - Source source = 2; + Source source = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for getting organization settings. message GetOrganizationSettingsRequest { - // Name of the organization to get organization settings for. Its format is + // Required. Name of the organization to get organization settings for. Its format is // "organizations/[organization_id]/organizationSettings". - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/OrganizationSettings" + } + ]; } // Request message for getting a source. message GetSourceRequest { - // Relative resource name of the source. Its format is + // Required. Relative resource name of the source. Its format is // "organizations/[organization_id]/source/[source_id]". - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/Source" + } + ]; } // Request message for grouping by assets. message GroupAssetsRequest { - // Name of the organization to groupBy. Its format is + // Required. Name of the organization to groupBy. Its format is // "organizations/[organization_id]". - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Organization" + } + ]; // Expression that defines the filter to apply across assets. // The expression is a list of zero or more restrictions combined via logical @@ -281,34 +324,38 @@ message GroupAssetsRequest { // * boolean literals `true` and `false` without quotes. // // The following field and operator combinations are supported: - // name | '=' - // update_time | '=', '>', '<', '>=', '<=' + // + // * name: `=` + // * update_time: `=`, `>`, `<`, `>=`, `<=` // // Usage: This should be milliseconds since epoch or an RFC3339 string. // Examples: // "update_time = \"2019-06-10T16:07:18-07:00\"" // "update_time = 1560208038000" // - // create_time | '=', '>', '<', '>=', '<=' + // * create_time: `=`, `>`, `<`, `>=`, `<=` // // Usage: This should be milliseconds since epoch or an RFC3339 string. // Examples: // "create_time = \"2019-06-10T16:07:18-07:00\"" // "create_time = 1560208038000" // - // iam_policy.policy_blob | '=', ':' - // resource_properties | '=', ':', '>', '<', '>=', '<=' - // security_marks | '=', ':' - // security_center_properties.resource_name | '=', ':' - // security_center_properties.resource_type | '=', ':' - // security_center_properties.resource_parent | '=', ':' - // security_center_properties.resource_project | '=', ':' - // security_center_properties.resource_owners | '=', ':' + // * iam_policy.policy_blob: `=`, `:` + // * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + // * security_marks.marks: `=`, `:` + // * security_center_properties.resource_name: `=`, `:` + // * security_center_properties.resource_display_name: `=`, `:` + // * security_center_properties.resource_type: `=`, `:` + // * security_center_properties.resource_parent: `=`, `:` + // * security_center_properties.resource_parent_display_name: `=`, `:` + // * security_center_properties.resource_project: `=`, `:` + // * security_center_properties.resource_project_display_name: `=`, `:` + // * security_center_properties.resource_owners: `=`, `:` // // For example, `resource_properties.size = 100` is a valid filter string. string filter = 2; - // Expression that defines what assets fields to use for grouping. The string + // Required. Expression that defines what assets fields to use for grouping. The string // value should follow SQL syntax: comma separated list of fields. For // example: // "security_center_properties.resource_project,security_center_properties.project". @@ -316,13 +363,17 @@ message GroupAssetsRequest { // The following fields are supported when compare_duration is not set: // // * security_center_properties.resource_project + // * security_center_properties.resource_project_display_name // * security_center_properties.resource_type // * security_center_properties.resource_parent + // * security_center_properties.resource_parent_display_name // // The following fields are supported when compare_duration is set: // // * security_center_properties.resource_type - string group_by = 3; + // * security_center_properties.resource_project_display_name + // * security_center_properties.resource_parent_display_name + string group_by = 3 [(google.api.field_behavior) = REQUIRED]; // When compare_duration is set, the GroupResult's "state_change" property is // updated to indicate whether the asset was added, removed, or remained @@ -367,8 +418,6 @@ message GroupAssetsRequest { // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. int32 page_size = 8; - - reserved 6; } // Response message for grouping by assets. @@ -391,11 +440,16 @@ message GroupAssetsResponse { // Request message for grouping by findings. message GroupFindingsRequest { - // Name of the source to groupBy. Its format is + // Required. Name of the source to groupBy. Its format is // "organizations/[organization_id]/sources/[source_id]". To groupBy across // all sources provide a source_id of `-`. For example: - // organizations/123/sources/- - string parent = 1; + // organizations/{organization_id}/sources/- + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/Source" + } + ]; // Expression that defines the filter to apply across findings. // The expression is a list of one or more restrictions combined via logical @@ -422,26 +476,27 @@ message GroupFindingsRequest { // * boolean literals `true` and `false` without quotes. // // The following field and operator combinations are supported: - // name | `=` - // parent | '=', ':' - // resource_name | '=', ':' - // state | '=', ':' - // category | '=', ':' - // external_uri | '=', ':' - // event_time | `=`, `>`, `<`, `>=`, `<=` + // + // * name: `=` + // * parent: `=`, `:` + // * resource_name: `=`, `:` + // * state: `=`, `:` + // * category: `=`, `:` + // * external_uri: `=`, `:` + // * event_time: `=`, `>`, `<`, `>=`, `<=` // // Usage: This should be milliseconds since epoch or an RFC3339 string. // Examples: // "event_time = \"2019-06-10T16:07:18-07:00\"" // "event_time = 1560208038000" // - // security_marks | '=', ':' - // source_properties | '=', ':', `>`, `<`, `>=`, `<=` + // * security_marks.marks: `=`, `:` + // * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` // // For example, `source_properties.size = 100` is a valid filter string. string filter = 2; - // Expression that defines what assets fields to use for grouping (including + // Required. Expression that defines what assets fields to use for grouping (including // `state_change`). The string value should follow SQL syntax: comma separated // list of fields. For example: "parent,resource_name". // @@ -455,7 +510,7 @@ message GroupFindingsRequest { // The following fields are supported when compare_duration is set: // // * state_change - string group_by = 3; + string group_by = 3 [(google.api.field_behavior) = REQUIRED]; // Time used as a reference point when filtering findings. The filter is // limited to findings existing at the supplied time and their values are @@ -499,8 +554,6 @@ message GroupFindingsRequest { // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. int32 page_size = 8; - - reserved 6; } // Response message for group by findings. @@ -532,9 +585,14 @@ message GroupResult { // Request message for listing sources. message ListSourcesRequest { - // Resource name of the parent of sources to list. Its format should be + // Required. Resource name of the parent of sources to list. Its format should be // "organizations/[organization_id]". - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Organization" + } + ]; // The value returned by the last `ListSourcesResponse`; indicates // that this is a continuation of a prior `ListSources` call, and @@ -558,9 +616,14 @@ message ListSourcesResponse { // Request message for listing assets. message ListAssetsRequest { - // Name of the organization assets should belong to. Its format is + // Required. Name of the organization assets should belong to. Its format is // "organizations/[organization_id]". - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Organization" + } + ]; // Expression that defines the filter to apply across assets. // The expression is a list of zero or more restrictions combined via logical @@ -589,29 +652,33 @@ message ListAssetsRequest { // * boolean literals `true` and `false` without quotes. // // The following are the allowed field and operator combinations: - // name | `=` - // update_time | `=`, `>`, `<`, `>=`, `<=` + // + // * name: `=` + // * update_time: `=`, `>`, `<`, `>=`, `<=` // // Usage: This should be milliseconds since epoch or an RFC3339 string. // Examples: // "update_time = \"2019-06-10T16:07:18-07:00\"" // "update_time = 1560208038000" // - // create_time | `=`, `>`, `<`, `>=`, `<=` + // * create_time: `=`, `>`, `<`, `>=`, `<=` // // Usage: This should be milliseconds since epoch or an RFC3339 string. // Examples: // "create_time = \"2019-06-10T16:07:18-07:00\"" // "create_time = 1560208038000" // - // iam_policy.policy_blob | '=', ':' - // resource_properties | '=', ':', `>`, `<`, `>=`, `<=` - // security_marks | '=', ':' - // security_center_properties.resource_name | '=', ':' - // security_center_properties.resource_type | '=', ':' - // security_center_properties.resource_parent | '=', ':' - // security_center_properties.resource_project | '=', ':' - // security_center_properties.resource_owners | '=', ':' + // * iam_policy.policy_blob: `=`, `:` + // * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` + // * security_marks.marks: `=`, `:` + // * security_center_properties.resource_name: `=`, `:` + // * security_center_properties.resource_display_name: `=`, `:` + // * security_center_properties.resource_type: `=`, `:` + // * security_center_properties.resource_parent: `=`, `:` + // * security_center_properties.resource_parent_display_name: `=`, `:` + // * security_center_properties.resource_project: `=`, `:` + // * security_center_properties.resource_project_display_name: `=`, `:` + // * security_center_properties.resource_owners: `=`, `:` // // For example, `resource_properties.size = 100` is a valid filter string. string filter = 2; @@ -629,10 +696,13 @@ message ListAssetsRequest { // name // update_time // resource_properties - // security_marks + // security_marks.marks // security_center_properties.resource_name + // security_center_properties.resource_display_name // security_center_properties.resource_parent + // security_center_properties.resource_parent_display_name // security_center_properties.resource_project + // security_center_properties.resource_project_display_name // security_center_properties.resource_type string order_by = 3; @@ -668,12 +738,10 @@ message ListAssetsRequest { // read_time. google.protobuf.Duration compare_duration = 5; - // Optional. - // - // A field mask to specify the ListAssetsResult fields to be listed in the + // Optional. A field mask to specify the ListAssetsResult fields to be listed in the // response. // An empty field mask will list all fields. - google.protobuf.FieldMask field_mask = 7; + google.protobuf.FieldMask field_mask = 7 [(google.api.field_behavior) = OPTIONAL]; // The value returned by the last `ListAssetsResponse`; indicates // that this is a continuation of a prior `ListAssets` call, and @@ -683,8 +751,6 @@ message ListAssetsRequest { // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. int32 page_size = 9; - - reserved 6; } // Response message for listing assets. @@ -734,11 +800,16 @@ message ListAssetsResponse { // Request message for listing findings. message ListFindingsRequest { - // Name of the source the findings belong to. Its format is + // Required. Name of the source the findings belong to. Its format is // "organizations/[organization_id]/sources/[source_id]". To list across all // sources provide a source_id of `-`. For example: - // organizations/123/sources/- - string parent = 1; + // organizations/{organization_id}/sources/- + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/Source" + } + ]; // Expression that defines the filter to apply across findings. // The expression is a list of one or more restrictions combined via logical @@ -765,21 +836,22 @@ message ListFindingsRequest { // * boolean literals `true` and `false` without quotes. // // The following field and operator combinations are supported: - // name | `=` - // parent | '=', ':' - // resource_name | '=', ':' - // state | '=', ':' - // category | '=', ':' - // external_uri | '=', ':' - // event_time | `=`, `>`, `<`, `>=`, `<=` + // + // name: `=` + // parent: `=`, `:` + // resource_name: `=`, `:` + // state: `=`, `:` + // category: `=`, `:` + // external_uri: `=`, `:` + // event_time: `=`, `>`, `<`, `>=`, `<=` // // Usage: This should be milliseconds since epoch or an RFC3339 string. // Examples: // "event_time = \"2019-06-10T16:07:18-07:00\"" // "event_time = 1560208038000" // - // security_marks | '=', ':' - // source_properties | '=', ':', `>`, `<`, `>=`, `<=` + // security_marks.marks: `=`, `:` + // source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` // // For example, `source_properties.size = 100` is a valid filter string. string filter = 2; @@ -801,7 +873,7 @@ message ListFindingsRequest { // resource_name // event_time // source_properties - // security_marks + // security_marks.marks string order_by = 3; // Time used as a reference point when filtering findings. The filter is @@ -836,11 +908,9 @@ message ListFindingsRequest { // read_time. google.protobuf.Duration compare_duration = 5; - // Optional. - // - // A field mask to specify the Finding fields to be listed in the response. + // Optional. A field mask to specify the Finding fields to be listed in the response. // An empty field mask will list all fields. - google.protobuf.FieldMask field_mask = 7; + google.protobuf.FieldMask field_mask = 7 [(google.api.field_behavior) = OPTIONAL]; // The value returned by the last `ListFindingsResponse`; indicates // that this is a continuation of a prior `ListFindings` call, and @@ -850,14 +920,32 @@ message ListFindingsRequest { // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. int32 page_size = 9; - - reserved 6; } // Response message for listing findings. message ListFindingsResponse { // Result containing the Finding and its StateChange. message ListFindingsResult { + // Information related to the Google Cloud Platform (GCP) resource that is + // associated with this finding. + message Resource { + // The full resource name of the resource. See: + // https://cloud.google.com/apis/design/resource_names#full_resource_name + string name = 1; + + // The full resource name of project that the resource belongs to. + string project_name = 2; + + // The human readable name of project that the resource belongs to. + string project_display_name = 3; + + // The full resource name of resource's parent. + string parent_name = 4; + + // The human readable name of resource's parent. + string parent_display_name = 5; + } + // The change in state of the finding. // // When querying across two points in time this describes @@ -891,6 +979,9 @@ message ListFindingsResponse { // State change of the finding between the points in time. StateChange state_change = 2; + + // Output only. Resource that is associated with this finding. + Resource resource = 3; } // Findings matching the list request. @@ -909,35 +1000,45 @@ message ListFindingsResponse { // Request message for updating a finding's state. message SetFindingStateRequest { - // The relative resource name of the finding. See: + // Required. The relative resource name of the finding. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: - // "organizations/123/sources/456/finding/789". - string name = 1; + // "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/Finding" + } + ]; - // The desired State of the finding. - Finding.State state = 2; + // Required. The desired State of the finding. + Finding.State state = 2 [(google.api.field_behavior) = REQUIRED]; - // The time at which the updated state takes effect. - google.protobuf.Timestamp start_time = 3; + // Required. The time at which the updated state takes effect. + google.protobuf.Timestamp start_time = 3 [(google.api.field_behavior) = REQUIRED]; } // Request message for running asset discovery for an organization. message RunAssetDiscoveryRequest { - // Name of the organization to run asset discovery for. Its format is + // Required. Name of the organization to run asset discovery for. Its format is // "organizations/[organization_id]". - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Organization" + } + ]; } // Request message for updating or creating a finding. message UpdateFindingRequest { - // The finding resource to update or create if it does not already exist. + // Required. The finding resource to update or create if it does not already exist. // parent, security_marks, and update_time will be ignored. // // In the case of creation, the finding id portion of the name must be // alphanumeric and less than or equal to 32 characters and greater than 0 // characters in length. - Finding finding = 1; + Finding finding = 1 [(google.api.field_behavior) = REQUIRED]; // The FieldMask to use when updating the finding resource. This field should // not be specified when creating a finding. @@ -951,8 +1052,8 @@ message UpdateFindingRequest { // Request message for updating an organization's settings. message UpdateOrganizationSettingsRequest { - // The organization settings resource to update. - OrganizationSettings organization_settings = 1; + // Required. The organization settings resource to update. + OrganizationSettings organization_settings = 1 [(google.api.field_behavior) = REQUIRED]; // The FieldMask to use when updating the settings resource. // @@ -962,8 +1063,8 @@ message UpdateOrganizationSettingsRequest { // Request message for updating a source. message UpdateSourceRequest { - // The source resource to update. - Source source = 1; + // Required. The source resource to update. + Source source = 1 [(google.api.field_behavior) = REQUIRED]; // The FieldMask to use when updating the source resource. // @@ -973,8 +1074,8 @@ message UpdateSourceRequest { // Request message for updating a SecurityMarks resource. message UpdateSecurityMarksRequest { - // The security marks resource to update. - SecurityMarks security_marks = 1; + // Required. The security marks resource to update. + SecurityMarks security_marks = 1 [(google.api.field_behavior) = REQUIRED]; // The FieldMask to use when updating the security marks resource. // diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto index 26b0d5a64..d26e042f1 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto +++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; +import "google/api/resource.proto"; import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; @@ -28,31 +29,33 @@ option ruby_package = "Google::Cloud::SecurityCenter::V1"; // Cloud Security Command Center's (Cloud SCC) finding source. A finding source // is an entity or a mechanism that can produce a finding. A source is like a -// container of findings that come from the same scanner, logger, monitor, etc. +// container of findings that come from the same scanner, logger, monitor, and +// other tools. message Source { + option (google.api.resource) = { + type: "securitycenter.googleapis.com/Source" + pattern: "organizations/{organization}/sources/{source}" + }; + // The relative resource name of this source. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: - // "organizations/123/sources/456" + // "organizations/{organization_id}/sources/{source_id}" string name = 1; - // The source’s display name. - // A source’s display name must be unique amongst its siblings, for example, + // The source's display name. + // A source's display name must be unique amongst its siblings, for example, // two sources with the same parent can't share the same display name. - // The display name must start and end with a letter or digit, may contain - // letters, digits, spaces, hyphens, and underscores, and can be no longer - // than 32 characters. This is captured by the regular expression: - // [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?. + // The display name must have a length between 1 and 64 characters + // (inclusive). string display_name = 2; // The description of the source (max of 1024 characters). // Example: - // "Cloud Security Scanner is a web security scanner for common + // "Web Security Scanner is a web security scanner for common // vulnerabilities in App Engine applications. It can automatically // scan and detect four common vulnerabilities, including cross-site-scripting // (XSS), Flash injection, mixed content (HTTP in HTTPS), and - // outdated/insecure libraries." + // outdated or insecure libraries." string description = 3; - - reserved 4; } diff --git a/proto-google-cloud-securitycenter-v1beta1/pom.xml b/proto-google-cloud-securitycenter-v1beta1/pom.xml index 5bf94a4e9..0e8ba240c 100644 --- a/proto-google-cloud-securitycenter-v1beta1/pom.xml +++ b/proto-google-cloud-securitycenter-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.82.0 + 0.83.0 proto-google-cloud-securitycenter-v1beta1 PROTO library for proto-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 0.117.0 + 0.118.0 diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java index 3ffa5d74e..be5f7898e 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java @@ -45,6 +45,12 @@ private Asset() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Asset(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -97,11 +103,11 @@ private Asset( } case 58: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { resourceProperties_ = com.google.protobuf.MapField.newMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry resourceProperties__ = @@ -214,24 +220,28 @@ public interface SecurityCenterPropertiesOrBuilder * * *
-     * The full resource name of the GCP resource this asset
+     * Immutable. The full resource name of the GCP resource this asset
      * represents. This field is immutable after create time. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The resourceName. */ java.lang.String getResourceName(); /** * * *
-     * The full resource name of the GCP resource this asset
+     * Immutable. The full resource name of the GCP resource this asset
      * represents. This field is immutable after create time. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for resourceName. */ com.google.protobuf.ByteString getResourceNameBytes(); @@ -246,6 +256,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * string resource_type = 2; + * + * @return The resourceType. */ java.lang.String getResourceType(); /** @@ -259,6 +271,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * string resource_type = 2; + * + * @return The bytes for resourceType. */ com.google.protobuf.ByteString getResourceTypeBytes(); @@ -271,6 +285,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * string resource_parent = 3; + * + * @return The resourceParent. */ java.lang.String getResourceParent(); /** @@ -282,6 +298,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * string resource_parent = 3; + * + * @return The bytes for resourceParent. */ com.google.protobuf.ByteString getResourceParentBytes(); @@ -294,6 +312,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * string resource_project = 4; + * + * @return The resourceProject. */ java.lang.String getResourceProject(); /** @@ -305,6 +325,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * string resource_project = 4; + * + * @return The bytes for resourceProject. */ com.google.protobuf.ByteString getResourceProjectBytes(); @@ -316,6 +338,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * repeated string resource_owners = 5; + * + * @return A list containing the resourceOwners. */ java.util.List getResourceOwnersList(); /** @@ -326,6 +350,8 @@ public interface SecurityCenterPropertiesOrBuilder * * * repeated string resource_owners = 5; + * + * @return The count of resourceOwners. */ int getResourceOwnersCount(); /** @@ -336,6 +362,9 @@ public interface SecurityCenterPropertiesOrBuilder * * * repeated string resource_owners = 5; + * + * @param index The index of the element to return. + * @return The resourceOwners at the given index. */ java.lang.String getResourceOwners(int index); /** @@ -346,6 +375,9 @@ public interface SecurityCenterPropertiesOrBuilder * * * repeated string resource_owners = 5; + * + * @param index The index of the value to return. + * @return The bytes of the resourceOwners at the given index. */ com.google.protobuf.ByteString getResourceOwnersBytes(int index); } @@ -377,6 +409,12 @@ private SecurityCenterProperties() { resourceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SecurityCenterProperties(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -432,9 +470,9 @@ private SecurityCenterProperties( case 42: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { resourceOwners_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000001; } resourceOwners_.add(s); break; @@ -453,7 +491,7 @@ private SecurityCenterProperties( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000010) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { resourceOwners_ = resourceOwners_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -476,19 +514,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder.class); } - private int bitField0_; public static final int RESOURCE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object resourceName_; /** * * *
-     * The full resource name of the GCP resource this asset
+     * Immutable. The full resource name of the GCP resource this asset
      * represents. This field is immutable after create time. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; @@ -505,12 +544,14 @@ public java.lang.String getResourceName() { * * *
-     * The full resource name of the GCP resource this asset
+     * Immutable. The full resource name of the GCP resource this asset
      * represents. This field is immutable after create time. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; @@ -537,6 +578,8 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * * string resource_type = 2; + * + * @return The resourceType. */ public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; @@ -560,6 +603,8 @@ public java.lang.String getResourceType() { * * * string resource_type = 2; + * + * @return The bytes for resourceType. */ public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; @@ -584,6 +629,8 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { * * * string resource_parent = 3; + * + * @return The resourceParent. */ public java.lang.String getResourceParent() { java.lang.Object ref = resourceParent_; @@ -605,6 +652,8 @@ public java.lang.String getResourceParent() { * * * string resource_parent = 3; + * + * @return The bytes for resourceParent. */ public com.google.protobuf.ByteString getResourceParentBytes() { java.lang.Object ref = resourceParent_; @@ -629,6 +678,8 @@ public com.google.protobuf.ByteString getResourceParentBytes() { * * * string resource_project = 4; + * + * @return The resourceProject. */ public java.lang.String getResourceProject() { java.lang.Object ref = resourceProject_; @@ -650,6 +701,8 @@ public java.lang.String getResourceProject() { * * * string resource_project = 4; + * + * @return The bytes for resourceProject. */ public com.google.protobuf.ByteString getResourceProjectBytes() { java.lang.Object ref = resourceProject_; @@ -673,6 +726,8 @@ public com.google.protobuf.ByteString getResourceProjectBytes() { * * * repeated string resource_owners = 5; + * + * @return A list containing the resourceOwners. */ public com.google.protobuf.ProtocolStringList getResourceOwnersList() { return resourceOwners_; @@ -685,6 +740,8 @@ public com.google.protobuf.ProtocolStringList getResourceOwnersList() { * * * repeated string resource_owners = 5; + * + * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); @@ -697,6 +754,9 @@ public int getResourceOwnersCount() { * * * repeated string resource_owners = 5; + * + * @param index The index of the element to return. + * @return The resourceOwners at the given index. */ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); @@ -709,6 +769,9 @@ public java.lang.String getResourceOwners(int index) { * * * repeated string resource_owners = 5; + * + * @param index The index of the value to return. + * @return The bytes of the resourceOwners at the given index. */ public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); @@ -978,7 +1041,7 @@ public Builder clear() { resourceProject_ = ""; resourceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -1010,17 +1073,15 @@ public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties bu com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties result = new com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.resourceName_ = resourceName_; result.resourceType_ = resourceType_; result.resourceParent_ = resourceParent_; result.resourceProject_ = resourceProject_; - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { resourceOwners_ = resourceOwners_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); } result.resourceOwners_ = resourceOwners_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1096,7 +1157,7 @@ public Builder mergeFrom( if (!other.resourceOwners_.isEmpty()) { if (resourceOwners_.isEmpty()) { resourceOwners_ = other.resourceOwners_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourceOwnersIsMutable(); resourceOwners_.addAll(other.resourceOwners_); @@ -1141,12 +1202,14 @@ public Builder mergeFrom( * * *
-       * The full resource name of the GCP resource this asset
+       * Immutable. The full resource name of the GCP resource this asset
        * represents. This field is immutable after create time. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; @@ -1163,12 +1226,14 @@ public java.lang.String getResourceName() { * * *
-       * The full resource name of the GCP resource this asset
+       * Immutable. The full resource name of the GCP resource this asset
        * represents. This field is immutable after create time. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; @@ -1185,12 +1250,15 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * *
-       * The full resource name of the GCP resource this asset
+       * Immutable. The full resource name of the GCP resource this asset
        * represents. This field is immutable after create time. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The resourceName to set. + * @return This builder for chaining. */ public Builder setResourceName(java.lang.String value) { if (value == null) { @@ -1205,12 +1273,14 @@ public Builder setResourceName(java.lang.String value) { * * *
-       * The full resource name of the GCP resource this asset
+       * Immutable. The full resource name of the GCP resource this asset
        * represents. This field is immutable after create time. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. */ public Builder clearResourceName() { @@ -1222,12 +1292,15 @@ public Builder clearResourceName() { * * *
-       * The full resource name of the GCP resource this asset
+       * Immutable. The full resource name of the GCP resource this asset
        * represents. This field is immutable after create time. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for resourceName to set. + * @return This builder for chaining. */ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1252,6 +1325,8 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { * * * string resource_type = 2; + * + * @return The resourceType. */ public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; @@ -1275,6 +1350,8 @@ public java.lang.String getResourceType() { * * * string resource_type = 2; + * + * @return The bytes for resourceType. */ public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; @@ -1298,6 +1375,9 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { * * * string resource_type = 2; + * + * @param value The resourceType to set. + * @return This builder for chaining. */ public Builder setResourceType(java.lang.String value) { if (value == null) { @@ -1319,6 +1399,8 @@ public Builder setResourceType(java.lang.String value) { * * * string resource_type = 2; + * + * @return This builder for chaining. */ public Builder clearResourceType() { @@ -1337,6 +1419,9 @@ public Builder clearResourceType() { * * * string resource_type = 2; + * + * @param value The bytes for resourceType to set. + * @return This builder for chaining. */ public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1359,6 +1444,8 @@ public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { * * * string resource_parent = 3; + * + * @return The resourceParent. */ public java.lang.String getResourceParent() { java.lang.Object ref = resourceParent_; @@ -1380,6 +1467,8 @@ public java.lang.String getResourceParent() { * * * string resource_parent = 3; + * + * @return The bytes for resourceParent. */ public com.google.protobuf.ByteString getResourceParentBytes() { java.lang.Object ref = resourceParent_; @@ -1401,6 +1490,9 @@ public com.google.protobuf.ByteString getResourceParentBytes() { * * * string resource_parent = 3; + * + * @param value The resourceParent to set. + * @return This builder for chaining. */ public Builder setResourceParent(java.lang.String value) { if (value == null) { @@ -1420,6 +1512,8 @@ public Builder setResourceParent(java.lang.String value) { * * * string resource_parent = 3; + * + * @return This builder for chaining. */ public Builder clearResourceParent() { @@ -1436,6 +1530,9 @@ public Builder clearResourceParent() { * * * string resource_parent = 3; + * + * @param value The bytes for resourceParent to set. + * @return This builder for chaining. */ public Builder setResourceParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1458,6 +1555,8 @@ public Builder setResourceParentBytes(com.google.protobuf.ByteString value) { * * * string resource_project = 4; + * + * @return The resourceProject. */ public java.lang.String getResourceProject() { java.lang.Object ref = resourceProject_; @@ -1479,6 +1578,8 @@ public java.lang.String getResourceProject() { * * * string resource_project = 4; + * + * @return The bytes for resourceProject. */ public com.google.protobuf.ByteString getResourceProjectBytes() { java.lang.Object ref = resourceProject_; @@ -1500,6 +1601,9 @@ public com.google.protobuf.ByteString getResourceProjectBytes() { * * * string resource_project = 4; + * + * @param value The resourceProject to set. + * @return This builder for chaining. */ public Builder setResourceProject(java.lang.String value) { if (value == null) { @@ -1519,6 +1623,8 @@ public Builder setResourceProject(java.lang.String value) { * * * string resource_project = 4; + * + * @return This builder for chaining. */ public Builder clearResourceProject() { @@ -1535,6 +1641,9 @@ public Builder clearResourceProject() { * * * string resource_project = 4; + * + * @param value The bytes for resourceProject to set. + * @return This builder for chaining. */ public Builder setResourceProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1551,9 +1660,9 @@ public Builder setResourceProjectBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourceOwnersIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { resourceOwners_ = new com.google.protobuf.LazyStringArrayList(resourceOwners_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000001; } } /** @@ -1564,6 +1673,8 @@ private void ensureResourceOwnersIsMutable() { * * * repeated string resource_owners = 5; + * + * @return A list containing the resourceOwners. */ public com.google.protobuf.ProtocolStringList getResourceOwnersList() { return resourceOwners_.getUnmodifiableView(); @@ -1576,6 +1687,8 @@ public com.google.protobuf.ProtocolStringList getResourceOwnersList() { * * * repeated string resource_owners = 5; + * + * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); @@ -1588,6 +1701,9 @@ public int getResourceOwnersCount() { * * * repeated string resource_owners = 5; + * + * @param index The index of the element to return. + * @return The resourceOwners at the given index. */ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); @@ -1600,6 +1716,9 @@ public java.lang.String getResourceOwners(int index) { * * * repeated string resource_owners = 5; + * + * @param index The index of the value to return. + * @return The bytes of the resourceOwners at the given index. */ public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); @@ -1612,6 +1731,10 @@ public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { * * * repeated string resource_owners = 5; + * + * @param index The index to set the value at. + * @param value The resourceOwners to set. + * @return This builder for chaining. */ public Builder setResourceOwners(int index, java.lang.String value) { if (value == null) { @@ -1630,6 +1753,9 @@ public Builder setResourceOwners(int index, java.lang.String value) { * * * repeated string resource_owners = 5; + * + * @param value The resourceOwners to add. + * @return This builder for chaining. */ public Builder addResourceOwners(java.lang.String value) { if (value == null) { @@ -1648,6 +1774,9 @@ public Builder addResourceOwners(java.lang.String value) { * * * repeated string resource_owners = 5; + * + * @param values The resourceOwners to add. + * @return This builder for chaining. */ public Builder addAllResourceOwners(java.lang.Iterable values) { ensureResourceOwnersIsMutable(); @@ -1663,10 +1792,12 @@ public Builder addAllResourceOwners(java.lang.Iterable values) * * * repeated string resource_owners = 5; + * + * @return This builder for chaining. */ public Builder clearResourceOwners() { resourceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1678,6 +1809,9 @@ public Builder clearResourceOwners() { * * * repeated string resource_owners = 5; + * + * @param value The bytes of the resourceOwners to add. + * @return This builder for chaining. */ public Builder addResourceOwnersBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1746,7 +1880,6 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -1756,10 +1889,12 @@ public com.google.protobuf.Parser getParserForType() { * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1779,10 +1914,12 @@ public java.lang.String getName() { * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1810,6 +1947,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * + * + * @return Whether the securityCenterProperties field is set. */ public boolean hasSecurityCenterProperties() { return securityCenterProperties_ != null; @@ -1825,6 +1964,8 @@ public boolean hasSecurityCenterProperties() { * * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * + * + * @return The securityCenterProperties. */ public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties() { @@ -1966,6 +2107,8 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String k * * * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarks_ != null; @@ -1979,6 +2122,8 @@ public boolean hasSecurityMarks() { * * * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * @return The securityMarks. */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { return securityMarks_ == null @@ -2010,6 +2155,8 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() * * * .google.protobuf.Timestamp create_time = 9; + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTime_ != null; @@ -2022,6 +2169,8 @@ public boolean hasCreateTime() { * * * .google.protobuf.Timestamp create_time = 9; + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; @@ -2050,6 +2199,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * * .google.protobuf.Timestamp update_time = 10; + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTime_ != null; @@ -2063,6 +2214,8 @@ public boolean hasUpdateTime() { * * * .google.protobuf.Timestamp update_time = 10; + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; @@ -2444,7 +2597,6 @@ public com.google.cloud.securitycenter.v1beta1.Asset buildPartial() { com.google.cloud.securitycenter.v1beta1.Asset result = new com.google.cloud.securitycenter.v1beta1.Asset(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; if (securityCenterPropertiesBuilder_ == null) { result.securityCenterProperties_ = securityCenterProperties_; @@ -2468,7 +2620,6 @@ public com.google.cloud.securitycenter.v1beta1.Asset buildPartial() { } else { result.updateTime_ = updateTimeBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -2574,10 +2725,12 @@ public Builder mergeFrom( * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -2597,10 +2750,12 @@ public java.lang.String getName() { * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -2620,10 +2775,13 @@ public com.google.protobuf.ByteString getNameBytes() { * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -2641,10 +2799,12 @@ public Builder setName(java.lang.String value) { * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -2659,10 +2819,13 @@ public Builder clearName() { * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2693,6 +2856,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * + * + * @return Whether the securityCenterProperties field is set. */ public boolean hasSecurityCenterProperties() { return securityCenterPropertiesBuilder_ != null || securityCenterProperties_ != null; @@ -2708,6 +2873,8 @@ public boolean hasSecurityCenterProperties() { * * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * + * + * @return The securityCenterProperties. */ public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties() { @@ -3077,6 +3244,8 @@ public Builder putAllResourceProperties( * * * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; @@ -3090,6 +3259,8 @@ public boolean hasSecurityMarks() { * * * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * @return The securityMarks. */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -3268,6 +3439,8 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity * * * .google.protobuf.Timestamp create_time = 9; + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; @@ -3280,6 +3453,8 @@ public boolean hasCreateTime() { * * * .google.protobuf.Timestamp create_time = 9; + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { @@ -3448,6 +3623,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * * .google.protobuf.Timestamp update_time = 10; + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; @@ -3461,6 +3638,8 @@ public boolean hasUpdateTime() { * * * .google.protobuf.Timestamp update_time = 10; + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java index 5042d610f..b2cb2f13f 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java @@ -30,10 +30,12 @@ public interface AssetOrBuilder * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -43,10 +45,12 @@ public interface AssetOrBuilder * The relative resource name of this asset. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/assets/456". + * "organizations/{organization_id}/assets/{asset_id}". * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -61,6 +65,8 @@ public interface AssetOrBuilder * * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * + * + * @return Whether the securityCenterProperties field is set. */ boolean hasSecurityCenterProperties(); /** @@ -74,6 +80,8 @@ public interface AssetOrBuilder * * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * + * + * @return The securityCenterProperties. */ com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties(); @@ -161,6 +169,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** @@ -172,6 +182,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * @return The securityMarks. */ com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks(); /** @@ -194,6 +206,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * * .google.protobuf.Timestamp create_time = 9; + * + * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** @@ -204,6 +218,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * * .google.protobuf.Timestamp create_time = 9; + * + * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** @@ -226,6 +242,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * * .google.protobuf.Timestamp update_time = 10; + * + * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** @@ -237,6 +255,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * * .google.protobuf.Timestamp update_time = 10; + * + * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java index 7dd2b8bef..23fe47f83 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java @@ -50,48 +50,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n/google/cloud/securitycenter/v1beta1/as" + "set.proto\022#google.cloud.securitycenter.v" - + "1beta1\032\034google/api/annotations.proto\0328go" - + "ogle/cloud/securitycenter/v1beta1/securi" - + "ty_marks.proto\032\034google/protobuf/struct.p" - + "roto\032\037google/protobuf/timestamp.proto\"\367\004" - + "\n\005Asset\022\014\n\004name\030\001 \001(\t\022g\n\032security_center" - + "_properties\030\002 \001(\0132C.google.cloud.securit" - + "ycenter.v1beta1.Asset.SecurityCenterProp" - + "erties\022_\n\023resource_properties\030\007 \003(\0132B.go" - + "ogle.cloud.securitycenter.v1beta1.Asset." - + "ResourcePropertiesEntry\022J\n\016security_mark" - + "s\030\010 \001(\01322.google.cloud.securitycenter.v1" - + "beta1.SecurityMarks\022/\n\013create_time\030\t \001(\013" - + "2\032.google.protobuf.Timestamp\022/\n\013update_t" - + "ime\030\n \001(\0132\032.google.protobuf.Timestamp\032\224\001" - + "\n\030SecurityCenterProperties\022\025\n\rresource_n" - + "ame\030\001 \001(\t\022\025\n\rresource_type\030\002 \001(\t\022\027\n\017reso" - + "urce_parent\030\003 \001(\t\022\030\n\020resource_project\030\004 " - + "\001(\t\022\027\n\017resource_owners\030\005 \003(\t\032Q\n\027Resource" - + "PropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 " - + "\001(\0132\026.google.protobuf.Value:\0028\001B~\n\'com.g" - + "oogle.cloud.securitycenter.v1beta1P\001ZQgo" - + "ogle.golang.org/genproto/googleapis/clou" - + "d/securitycenter/v1beta1;securitycenterb" - + "\006proto3" + + "1beta1\032\037google/api/field_behavior.proto\032" + + "8google/cloud/securitycenter/v1beta1/sec" + + "urity_marks.proto\032\034google/protobuf/struc" + + "t.proto\032\037google/protobuf/timestamp.proto" + + "\032\034google/api/annotations.proto\"\374\004\n\005Asset" + + "\022\014\n\004name\030\001 \001(\t\022g\n\032security_center_proper" + + "ties\030\002 \001(\0132C.google.cloud.securitycenter" + + ".v1beta1.Asset.SecurityCenterProperties\022" + + "_\n\023resource_properties\030\007 \003(\0132B.google.cl" + + "oud.securitycenter.v1beta1.Asset.Resourc" + + "ePropertiesEntry\022J\n\016security_marks\030\010 \001(\013" + + "22.google.cloud.securitycenter.v1beta1.S" + + "ecurityMarks\022/\n\013create_time\030\t \001(\0132\032.goog" + + "le.protobuf.Timestamp\022/\n\013update_time\030\n \001" + + "(\0132\032.google.protobuf.Timestamp\032\231\001\n\030Secur" + + "ityCenterProperties\022\032\n\rresource_name\030\001 \001" + + "(\tB\003\340A\005\022\025\n\rresource_type\030\002 \001(\t\022\027\n\017resour" + + "ce_parent\030\003 \001(\t\022\030\n\020resource_project\030\004 \001(" + + "\t\022\027\n\017resource_owners\030\005 \003(\t\032Q\n\027ResourcePr" + + "opertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(" + + "\0132\026.google.protobuf.Value:\0028\001B~\n\'com.goo" + + "gle.cloud.securitycenter.v1beta1P\001ZQgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "securitycenter/v1beta1;securitycenterb\006p" + + "roto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable = @@ -125,10 +119,16 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Key", "Value", }); - com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetSecurityMarksName.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetSecurityMarksName.java index 208593764..169cfc0f6 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetSecurityMarksName.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetSecurityMarksName.java @@ -23,8 +23,13 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * AUTO-GENERATED DOCUMENTATION AND CLASS + * + * @deprecated This resource name class will be removed in the next major version. + */ @javax.annotation.Generated("by GAPIC protoc plugin") +@Deprecated public class AssetSecurityMarksName extends SecuritymarksName { private static final PathTemplate PATH_TEMPLATE = diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java index cef7ffc77..a39c5ba72 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java @@ -42,6 +42,12 @@ private CreateFindingRequest() { findingId_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateFindingRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private CreateFindingRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -136,11 +141,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name of the new finding's parent. Its format should be
+   * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -157,11 +166,15 @@ public java.lang.String getParent() { * * *
-   * Resource name of the new finding's parent. Its format should be
+   * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -181,12 +194,14 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Unique identifier provided by the client within the parent scope.
+   * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
    * greater than 0 characters in length.
    * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The findingId. */ public java.lang.String getFindingId() { java.lang.Object ref = findingId_; @@ -203,12 +218,14 @@ public java.lang.String getFindingId() { * * *
-   * Unique identifier provided by the client within the parent scope.
+   * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
    * greater than 0 characters in length.
    * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for findingId. */ public com.google.protobuf.ByteString getFindingIdBytes() { java.lang.Object ref = findingId_; @@ -228,11 +245,15 @@ public com.google.protobuf.ByteString getFindingIdBytes() { * * *
-   * The Finding being created. The name and security_marks will be ignored as
+   * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the finding field is set. */ public boolean hasFinding() { return finding_ != null; @@ -241,11 +262,15 @@ public boolean hasFinding() { * * *
-   * The Finding being created. The name and security_marks will be ignored as
+   * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The finding. */ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { return finding_ == null @@ -256,11 +281,13 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { * * *
-   * The Finding being created. The name and security_marks will be ignored as
+   * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() { return getFinding(); @@ -636,11 +663,15 @@ public Builder mergeFrom( * * *
-     * Resource name of the new finding's parent. Its format should be
+     * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -657,11 +688,15 @@ public java.lang.String getParent() { * * *
-     * Resource name of the new finding's parent. Its format should be
+     * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -678,11 +713,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Resource name of the new finding's parent. Its format should be
+     * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -697,11 +737,15 @@ public Builder setParent(java.lang.String value) { * * *
-     * Resource name of the new finding's parent. Its format should be
+     * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -713,11 +757,16 @@ public Builder clearParent() { * * *
-     * Resource name of the new finding's parent. Its format should be
+     * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -735,12 +784,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Unique identifier provided by the client within the parent scope.
+     * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
      * greater than 0 characters in length.
      * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The findingId. */ public java.lang.String getFindingId() { java.lang.Object ref = findingId_; @@ -757,12 +808,14 @@ public java.lang.String getFindingId() { * * *
-     * Unique identifier provided by the client within the parent scope.
+     * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
      * greater than 0 characters in length.
      * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for findingId. */ public com.google.protobuf.ByteString getFindingIdBytes() { java.lang.Object ref = findingId_; @@ -779,12 +832,15 @@ public com.google.protobuf.ByteString getFindingIdBytes() { * * *
-     * Unique identifier provided by the client within the parent scope.
+     * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
      * greater than 0 characters in length.
      * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The findingId to set. + * @return This builder for chaining. */ public Builder setFindingId(java.lang.String value) { if (value == null) { @@ -799,12 +855,14 @@ public Builder setFindingId(java.lang.String value) { * * *
-     * Unique identifier provided by the client within the parent scope.
+     * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
      * greater than 0 characters in length.
      * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearFindingId() { @@ -816,12 +874,15 @@ public Builder clearFindingId() { * * *
-     * Unique identifier provided by the client within the parent scope.
+     * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
      * greater than 0 characters in length.
      * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for findingId to set. + * @return This builder for chaining. */ public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -844,11 +905,15 @@ public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; @@ -857,11 +922,15 @@ public boolean hasFinding() { * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The finding. */ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { if (findingBuilder_ == null) { @@ -876,11 +945,13 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding(com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingBuilder_ == null) { @@ -899,11 +970,13 @@ public Builder setFinding(com.google.cloud.securitycenter.v1beta1.Finding value) * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding( com.google.cloud.securitycenter.v1beta1.Finding.Builder builderForValue) { @@ -920,11 +993,13 @@ public Builder setFinding( * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFinding(com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingBuilder_ == null) { @@ -947,11 +1022,13 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1beta1.Finding valu * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -968,11 +1045,13 @@ public Builder clearFinding() { * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingBuilder() { @@ -983,11 +1062,13 @@ public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingBuilder * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { @@ -1002,11 +1083,13 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil * * *
-     * The Finding being created. The name and security_marks will be ignored as
+     * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.Finding, diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java index 4acb8f7f9..d53c21e1f 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface CreateFindingRequestOrBuilder * * *
-   * Resource name of the new finding's parent. Its format should be
+   * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Resource name of the new finding's parent. Its format should be
+   * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -50,24 +58,28 @@ public interface CreateFindingRequestOrBuilder * * *
-   * Unique identifier provided by the client within the parent scope.
+   * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
    * greater than 0 characters in length.
    * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The findingId. */ java.lang.String getFindingId(); /** * * *
-   * Unique identifier provided by the client within the parent scope.
+   * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
    * greater than 0 characters in length.
    * 
* - * string finding_id = 2; + * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for findingId. */ com.google.protobuf.ByteString getFindingIdBytes(); @@ -75,33 +87,43 @@ public interface CreateFindingRequestOrBuilder * * *
-   * The Finding being created. The name and security_marks will be ignored as
+   * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the finding field is set. */ boolean hasFinding(); /** * * *
-   * The Finding being created. The name and security_marks will be ignored as
+   * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The finding. */ com.google.cloud.securitycenter.v1beta1.Finding getFinding(); /** * * *
-   * The Finding being created. The name and security_marks will be ignored as
+   * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java index 2726a36cb..f3bc2b233 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java @@ -41,6 +41,12 @@ private CreateSourceRequest() { parent_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSourceRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private CreateSourceRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -128,11 +133,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name of the new source's parent. Its format should be
+   * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -149,11 +158,15 @@ public java.lang.String getParent() { * * *
-   * Resource name of the new source's parent. Its format should be
+   * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -173,11 +186,15 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The Source being created, only the display_name and description will be
+   * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. */ public boolean hasSource() { return source_ != null; @@ -186,11 +203,15 @@ public boolean hasSource() { * * *
-   * The Source being created, only the display_name and description will be
+   * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. */ public com.google.cloud.securitycenter.v1beta1.Source getSource() { return source_ == null @@ -201,11 +222,13 @@ public com.google.cloud.securitycenter.v1beta1.Source getSource() { * * *
-   * The Source being created, only the display_name and description will be
+   * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() { return getSource(); @@ -563,11 +586,15 @@ public Builder mergeFrom( * * *
-     * Resource name of the new source's parent. Its format should be
+     * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -584,11 +611,15 @@ public java.lang.String getParent() { * * *
-     * Resource name of the new source's parent. Its format should be
+     * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -605,11 +636,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Resource name of the new source's parent. Its format should be
+     * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -624,11 +660,15 @@ public Builder setParent(java.lang.String value) { * * *
-     * Resource name of the new source's parent. Its format should be
+     * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -640,11 +680,16 @@ public Builder clearParent() { * * *
-     * Resource name of the new source's parent. Its format should be
+     * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -667,11 +712,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; @@ -680,11 +729,15 @@ public boolean hasSource() { * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. */ public com.google.cloud.securitycenter.v1beta1.Source getSource() { if (sourceBuilder_ == null) { @@ -699,11 +752,13 @@ public com.google.cloud.securitycenter.v1beta1.Source getSource() { * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource(com.google.cloud.securitycenter.v1beta1.Source value) { if (sourceBuilder_ == null) { @@ -722,11 +777,13 @@ public Builder setSource(com.google.cloud.securitycenter.v1beta1.Source value) { * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource( com.google.cloud.securitycenter.v1beta1.Source.Builder builderForValue) { @@ -743,11 +800,13 @@ public Builder setSource( * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSource(com.google.cloud.securitycenter.v1beta1.Source value) { if (sourceBuilder_ == null) { @@ -770,11 +829,13 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1beta1.Source value) * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -791,11 +852,13 @@ public Builder clearSource() { * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.Source.Builder getSourceBuilder() { @@ -806,11 +869,13 @@ public com.google.cloud.securitycenter.v1beta1.Source.Builder getSourceBuilder() * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { @@ -825,11 +890,13 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilde * * *
-     * The Source being created, only the display_name and description will be
+     * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.Source, diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java index f2543156c..53b291bf5 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface CreateSourceRequestOrBuilder * * *
-   * Resource name of the new source's parent. Its format should be
+   * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Resource name of the new source's parent. Its format should be
+   * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -50,33 +58,43 @@ public interface CreateSourceRequestOrBuilder * * *
-   * The Source being created, only the display_name and description will be
+   * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. */ boolean hasSource(); /** * * *
-   * The Source being created, only the display_name and description will be
+   * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. */ com.google.cloud.securitycenter.v1beta1.Source getSource(); /** * * *
-   * The Source being created, only the display_name and description will be
+   * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java index 926c02a1c..b0ac4eb61 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java @@ -50,6 +50,12 @@ private Finding() { externalUri_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Finding(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -118,11 +124,11 @@ private Finding( } case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { sourceProperties_ = com.google.protobuf.MapField.newMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000040; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry sourceProperties__ = @@ -310,12 +316,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static State forNumber(int value) { switch (value) { case 0: @@ -373,7 +387,6 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1beta1.Finding.State) } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -383,10 +396,12 @@ private State(int value) { * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -406,10 +421,12 @@ public java.lang.String getName() { * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -429,14 +446,16 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The relative resource name of the source the finding belongs to. See:
+   * Immutable. The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
    * This field is immutable after creation time.
    * For example:
-   * "organizations/123/sources/456"
+   * "organizations/{organization_id}/sources/{source_id}"
    * 
* - * string parent = 2; + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -453,14 +472,16 @@ public java.lang.String getParent() { * * *
-   * The relative resource name of the source the finding belongs to. See:
+   * Immutable. The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
    * This field is immutable after creation time.
    * For example:
-   * "organizations/123/sources/456"
+   * "organizations/{organization_id}/sources/{source_id}"
    * 
* - * string parent = 2; + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -480,13 +501,17 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The full resource name of the Google Cloud Platform (GCP) resource this
-   * finding is for. See:
+   * For findings on Google Cloud Platform (GCP) resources, the full resource
+   * name of the GCP resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * When the finding is for a non-GCP resource, the resourceName can be a
+   * customer or partner defined string.
    * This field is immutable after creation time.
    * 
* * string resource_name = 3; + * + * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; @@ -503,13 +528,17 @@ public java.lang.String getResourceName() { * * *
-   * The full resource name of the Google Cloud Platform (GCP) resource this
-   * finding is for. See:
+   * For findings on Google Cloud Platform (GCP) resources, the full resource
+   * name of the GCP resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * When the finding is for a non-GCP resource, the resourceName can be a
+   * customer or partner defined string.
    * This field is immutable after creation time.
    * 
* * string resource_name = 3; + * + * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; @@ -533,6 +562,8 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * + * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; @@ -545,6 +576,8 @@ public int getStateValue() { * * * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * + * @return The state. */ public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { @SuppressWarnings("deprecation") @@ -567,6 +600,8 @@ public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { * * * string category = 5; + * + * @return The category. */ public java.lang.String getCategory() { java.lang.Object ref = category_; @@ -589,6 +624,8 @@ public java.lang.String getCategory() { * * * string category = 5; + * + * @return The bytes for category. */ public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; @@ -614,6 +651,8 @@ public com.google.protobuf.ByteString getCategoryBytes() { * * * string external_uri = 6; + * + * @return The externalUri. */ public java.lang.String getExternalUri() { java.lang.Object ref = externalUri_; @@ -636,6 +675,8 @@ public java.lang.String getExternalUri() { * * * string external_uri = 6; + * + * @return The bytes for externalUri. */ public com.google.protobuf.ByteString getExternalUriBytes() { java.lang.Object ref = externalUri_; @@ -773,7 +814,11 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key * to the finding. * * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarks_ != null; @@ -787,7 +832,11 @@ public boolean hasSecurityMarks() { * to the finding. * * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The securityMarks. */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { return securityMarks_ == null @@ -803,7 +852,9 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() * to the finding. * * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { @@ -817,11 +868,13 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() * *
    * The time at which the event took place. For example, if the finding
-   * represents an open firewall it would capture the time the open firewall was
-   * detected.
+   * represents an open firewall it would capture the time the detector believes
+   * the firewall became open. The accuracy is determined by the detector.
    * 
* * .google.protobuf.Timestamp event_time = 9; + * + * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return eventTime_ != null; @@ -831,11 +884,13 @@ public boolean hasEventTime() { * *
    * The time at which the event took place. For example, if the finding
-   * represents an open firewall it would capture the time the open firewall was
-   * detected.
+   * represents an open firewall it would capture the time the detector believes
+   * the firewall became open. The accuracy is determined by the detector.
    * 
* * .google.protobuf.Timestamp event_time = 9; + * + * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; @@ -845,8 +900,8 @@ public com.google.protobuf.Timestamp getEventTime() { * *
    * The time at which the event took place. For example, if the finding
-   * represents an open firewall it would capture the time the open firewall was
-   * detected.
+   * represents an open firewall it would capture the time the detector believes
+   * the firewall became open. The accuracy is determined by the detector.
    * 
* * .google.protobuf.Timestamp event_time = 9; @@ -865,6 +920,8 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { * * * .google.protobuf.Timestamp create_time = 10; + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTime_ != null; @@ -877,6 +934,8 @@ public boolean hasCreateTime() { * * * .google.protobuf.Timestamp create_time = 10; + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; @@ -1287,7 +1346,6 @@ public com.google.cloud.securitycenter.v1beta1.Finding buildPartial() { com.google.cloud.securitycenter.v1beta1.Finding result = new com.google.cloud.securitycenter.v1beta1.Finding(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; result.parent_ = parent_; result.resourceName_ = resourceName_; @@ -1311,7 +1369,6 @@ public com.google.cloud.securitycenter.v1beta1.Finding buildPartial() { } else { result.createTime_ = createTimeBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1434,10 +1491,12 @@ public Builder mergeFrom( * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1457,10 +1516,12 @@ public java.lang.String getName() { * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1480,10 +1541,13 @@ public com.google.protobuf.ByteString getNameBytes() { * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1501,10 +1565,12 @@ public Builder setName(java.lang.String value) { * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1519,10 +1585,13 @@ public Builder clearName() { * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1540,14 +1609,16 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The relative resource name of the source the finding belongs to. See:
+     * Immutable. The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * This field is immutable after creation time.
      * For example:
-     * "organizations/123/sources/456"
+     * "organizations/{organization_id}/sources/{source_id}"
      * 
* - * string parent = 2; + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -1564,14 +1635,16 @@ public java.lang.String getParent() { * * *
-     * The relative resource name of the source the finding belongs to. See:
+     * Immutable. The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * This field is immutable after creation time.
      * For example:
-     * "organizations/123/sources/456"
+     * "organizations/{organization_id}/sources/{source_id}"
      * 
* - * string parent = 2; + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -1588,14 +1661,17 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * The relative resource name of the source the finding belongs to. See:
+     * Immutable. The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * This field is immutable after creation time.
      * For example:
-     * "organizations/123/sources/456"
+     * "organizations/{organization_id}/sources/{source_id}"
      * 
* - * string parent = 2; + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -1610,14 +1686,16 @@ public Builder setParent(java.lang.String value) { * * *
-     * The relative resource name of the source the finding belongs to. See:
+     * Immutable. The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * This field is immutable after creation time.
      * For example:
-     * "organizations/123/sources/456"
+     * "organizations/{organization_id}/sources/{source_id}"
      * 
* - * string parent = 2; + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -1629,14 +1707,17 @@ public Builder clearParent() { * * *
-     * The relative resource name of the source the finding belongs to. See:
+     * Immutable. The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * This field is immutable after creation time.
      * For example:
-     * "organizations/123/sources/456"
+     * "organizations/{organization_id}/sources/{source_id}"
      * 
* - * string parent = 2; + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1654,13 +1735,17 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The full resource name of the Google Cloud Platform (GCP) resource this
-     * finding is for. See:
+     * For findings on Google Cloud Platform (GCP) resources, the full resource
+     * name of the GCP resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * When the finding is for a non-GCP resource, the resourceName can be a
+     * customer or partner defined string.
      * This field is immutable after creation time.
      * 
* * string resource_name = 3; + * + * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; @@ -1677,13 +1762,17 @@ public java.lang.String getResourceName() { * * *
-     * The full resource name of the Google Cloud Platform (GCP) resource this
-     * finding is for. See:
+     * For findings on Google Cloud Platform (GCP) resources, the full resource
+     * name of the GCP resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * When the finding is for a non-GCP resource, the resourceName can be a
+     * customer or partner defined string.
      * This field is immutable after creation time.
      * 
* * string resource_name = 3; + * + * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; @@ -1700,13 +1789,18 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * *
-     * The full resource name of the Google Cloud Platform (GCP) resource this
-     * finding is for. See:
+     * For findings on Google Cloud Platform (GCP) resources, the full resource
+     * name of the GCP resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * When the finding is for a non-GCP resource, the resourceName can be a
+     * customer or partner defined string.
      * This field is immutable after creation time.
      * 
* * string resource_name = 3; + * + * @param value The resourceName to set. + * @return This builder for chaining. */ public Builder setResourceName(java.lang.String value) { if (value == null) { @@ -1721,13 +1815,17 @@ public Builder setResourceName(java.lang.String value) { * * *
-     * The full resource name of the Google Cloud Platform (GCP) resource this
-     * finding is for. See:
+     * For findings on Google Cloud Platform (GCP) resources, the full resource
+     * name of the GCP resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * When the finding is for a non-GCP resource, the resourceName can be a
+     * customer or partner defined string.
      * This field is immutable after creation time.
      * 
* * string resource_name = 3; + * + * @return This builder for chaining. */ public Builder clearResourceName() { @@ -1739,13 +1837,18 @@ public Builder clearResourceName() { * * *
-     * The full resource name of the Google Cloud Platform (GCP) resource this
-     * finding is for. See:
+     * For findings on Google Cloud Platform (GCP) resources, the full resource
+     * name of the GCP resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * When the finding is for a non-GCP resource, the resourceName can be a
+     * customer or partner defined string.
      * This field is immutable after creation time.
      * 
* * string resource_name = 3; + * + * @param value The bytes for resourceName to set. + * @return This builder for chaining. */ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1767,6 +1870,8 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * + * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; @@ -1779,6 +1884,9 @@ public int getStateValue() { * * * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; @@ -1793,6 +1901,8 @@ public Builder setStateValue(int value) { * * * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * + * @return The state. */ public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { @SuppressWarnings("deprecation") @@ -1810,6 +1920,9 @@ public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { * * * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * + * @param value The state to set. + * @return This builder for chaining. */ public Builder setState(com.google.cloud.securitycenter.v1beta1.Finding.State value) { if (value == null) { @@ -1828,6 +1941,8 @@ public Builder setState(com.google.cloud.securitycenter.v1beta1.Finding.State va * * * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * + * @return This builder for chaining. */ public Builder clearState() { @@ -1847,6 +1962,8 @@ public Builder clearState() { * * * string category = 5; + * + * @return The category. */ public java.lang.String getCategory() { java.lang.Object ref = category_; @@ -1869,6 +1986,8 @@ public java.lang.String getCategory() { * * * string category = 5; + * + * @return The bytes for category. */ public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; @@ -1891,6 +2010,9 @@ public com.google.protobuf.ByteString getCategoryBytes() { * * * string category = 5; + * + * @param value The category to set. + * @return This builder for chaining. */ public Builder setCategory(java.lang.String value) { if (value == null) { @@ -1911,6 +2033,8 @@ public Builder setCategory(java.lang.String value) { * * * string category = 5; + * + * @return This builder for chaining. */ public Builder clearCategory() { @@ -1928,6 +2052,9 @@ public Builder clearCategory() { * * * string category = 5; + * + * @param value The bytes for category to set. + * @return This builder for chaining. */ public Builder setCategoryBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1951,6 +2078,8 @@ public Builder setCategoryBytes(com.google.protobuf.ByteString value) { * * * string external_uri = 6; + * + * @return The externalUri. */ public java.lang.String getExternalUri() { java.lang.Object ref = externalUri_; @@ -1973,6 +2102,8 @@ public java.lang.String getExternalUri() { * * * string external_uri = 6; + * + * @return The bytes for externalUri. */ public com.google.protobuf.ByteString getExternalUriBytes() { java.lang.Object ref = externalUri_; @@ -1995,6 +2126,9 @@ public com.google.protobuf.ByteString getExternalUriBytes() { * * * string external_uri = 6; + * + * @param value The externalUri to set. + * @return This builder for chaining. */ public Builder setExternalUri(java.lang.String value) { if (value == null) { @@ -2015,6 +2149,8 @@ public Builder setExternalUri(java.lang.String value) { * * * string external_uri = 6; + * + * @return This builder for chaining. */ public Builder clearExternalUri() { @@ -2032,6 +2168,9 @@ public Builder clearExternalUri() { * * * string external_uri = 6; + * + * @param value The bytes for externalUri to set. + * @return This builder for chaining. */ public Builder setExternalUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2240,7 +2379,11 @@ public Builder putAllSourceProperties( * to the finding. * * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; @@ -2254,7 +2397,11 @@ public boolean hasSecurityMarks() { * to the finding. * * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The securityMarks. */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -2274,7 +2421,9 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() * to the finding. * * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -2298,7 +2447,9 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1beta1.Security * to the finding. * * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder builderForValue) { @@ -2320,7 +2471,9 @@ public Builder setSecurityMarks( * to the finding. * * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -2348,7 +2501,9 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.Securi * to the finding. * * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -2370,7 +2525,9 @@ public Builder clearSecurityMarks() { * to the finding. * * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurityMarksBuilder() { @@ -2386,7 +2543,9 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity * to the finding. * * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { @@ -2407,7 +2566,9 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity * to the finding. * * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.SecurityMarks, @@ -2437,11 +2598,13 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; + * + * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return eventTimeBuilder_ != null || eventTime_ != null; @@ -2451,11 +2614,13 @@ public boolean hasEventTime() { * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; + * + * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { if (eventTimeBuilder_ == null) { @@ -2469,8 +2634,8 @@ public com.google.protobuf.Timestamp getEventTime() { * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; @@ -2493,8 +2658,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; @@ -2514,8 +2679,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; @@ -2540,8 +2705,8 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; @@ -2562,8 +2727,8 @@ public Builder clearEventTime() { * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; @@ -2578,8 +2743,8 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; @@ -2596,8 +2761,8 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { * *
      * The time at which the event took place. For example, if the finding
-     * represents an open firewall it would capture the time the open firewall was
-     * detected.
+     * represents an open firewall it would capture the time the detector believes
+     * the firewall became open. The accuracy is determined by the detector.
      * 
* * .google.protobuf.Timestamp event_time = 9; @@ -2633,6 +2798,8 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { * * * .google.protobuf.Timestamp create_time = 10; + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; @@ -2645,6 +2812,8 @@ public boolean hasCreateTime() { * * * .google.protobuf.Timestamp create_time = 10; + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java index b8b84cd71..c78ab837f 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class FindingName implements ResourceName { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java index f6a5fcf96..de219df75 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java @@ -30,10 +30,12 @@ public interface FindingOrBuilder * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -43,10 +45,12 @@ public interface FindingOrBuilder * The relative resource name of this finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/findings/789" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -54,28 +58,32 @@ public interface FindingOrBuilder * * *
-   * The relative resource name of the source the finding belongs to. See:
+   * Immutable. The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
    * This field is immutable after creation time.
    * For example:
-   * "organizations/123/sources/456"
+   * "organizations/{organization_id}/sources/{source_id}"
    * 
* - * string parent = 2; + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * The relative resource name of the source the finding belongs to. See:
+   * Immutable. The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
    * This field is immutable after creation time.
    * For example:
-   * "organizations/123/sources/456"
+   * "organizations/{organization_id}/sources/{source_id}"
    * 
* - * string parent = 2; + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -83,26 +91,34 @@ public interface FindingOrBuilder * * *
-   * The full resource name of the Google Cloud Platform (GCP) resource this
-   * finding is for. See:
+   * For findings on Google Cloud Platform (GCP) resources, the full resource
+   * name of the GCP resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * When the finding is for a non-GCP resource, the resourceName can be a
+   * customer or partner defined string.
    * This field is immutable after creation time.
    * 
* * string resource_name = 3; + * + * @return The resourceName. */ java.lang.String getResourceName(); /** * * *
-   * The full resource name of the Google Cloud Platform (GCP) resource this
-   * finding is for. See:
+   * For findings on Google Cloud Platform (GCP) resources, the full resource
+   * name of the GCP resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * When the finding is for a non-GCP resource, the resourceName can be a
+   * customer or partner defined string.
    * This field is immutable after creation time.
    * 
* * string resource_name = 3; + * + * @return The bytes for resourceName. */ com.google.protobuf.ByteString getResourceNameBytes(); @@ -114,6 +130,8 @@ public interface FindingOrBuilder * * * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * + * @return The enum numeric value on the wire for state. */ int getStateValue(); /** @@ -124,6 +142,8 @@ public interface FindingOrBuilder * * * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * + * @return The state. */ com.google.cloud.securitycenter.v1beta1.Finding.State getState(); @@ -137,6 +157,8 @@ public interface FindingOrBuilder * * * string category = 5; + * + * @return The category. */ java.lang.String getCategory(); /** @@ -149,6 +171,8 @@ public interface FindingOrBuilder * * * string category = 5; + * + * @return The bytes for category. */ com.google.protobuf.ByteString getCategoryBytes(); @@ -162,6 +186,8 @@ public interface FindingOrBuilder * * * string external_uri = 6; + * + * @return The externalUri. */ java.lang.String getExternalUri(); /** @@ -174,6 +200,8 @@ public interface FindingOrBuilder * * * string external_uri = 6; + * + * @return The bytes for externalUri. */ com.google.protobuf.ByteString getExternalUriBytes(); @@ -256,7 +284,11 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * to the finding. * * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** @@ -268,7 +300,11 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * to the finding. * * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The securityMarks. */ com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks(); /** @@ -280,7 +316,9 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * to the finding. * * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); @@ -289,11 +327,13 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * *
    * The time at which the event took place. For example, if the finding
-   * represents an open firewall it would capture the time the open firewall was
-   * detected.
+   * represents an open firewall it would capture the time the detector believes
+   * the firewall became open. The accuracy is determined by the detector.
    * 
* * .google.protobuf.Timestamp event_time = 9; + * + * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** @@ -301,11 +341,13 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * *
    * The time at which the event took place. For example, if the finding
-   * represents an open firewall it would capture the time the open firewall was
-   * detected.
+   * represents an open firewall it would capture the time the detector believes
+   * the firewall became open. The accuracy is determined by the detector.
    * 
* * .google.protobuf.Timestamp event_time = 9; + * + * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** @@ -313,8 +355,8 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * *
    * The time at which the event took place. For example, if the finding
-   * represents an open firewall it would capture the time the open firewall was
-   * detected.
+   * represents an open firewall it would capture the time the detector believes
+   * the firewall became open. The accuracy is determined by the detector.
    * 
* * .google.protobuf.Timestamp event_time = 9; @@ -329,6 +371,8 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * * .google.protobuf.Timestamp create_time = 10; + * + * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** @@ -339,6 +383,8 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * * .google.protobuf.Timestamp create_time = 10; + * + * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java index ef1e8c559..3c93be68b 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java @@ -46,46 +46,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/securitycenter/v1beta1/fi" + "nding.proto\022#google.cloud.securitycenter" - + ".v1beta1\032\034google/api/annotations.proto\0328" - + "google/cloud/securitycenter/v1beta1/secu" - + "rity_marks.proto\032\034google/protobuf/struct" - + ".proto\032\037google/protobuf/timestamp.proto\"" - + "\300\004\n\007Finding\022\014\n\004name\030\001 \001(\t\022\016\n\006parent\030\002 \001(" - + "\t\022\025\n\rresource_name\030\003 \001(\t\022A\n\005state\030\004 \001(\0162" - + "2.google.cloud.securitycenter.v1beta1.Fi" - + "nding.State\022\020\n\010category\030\005 \001(\t\022\024\n\014externa" - + "l_uri\030\006 \001(\t\022]\n\021source_properties\030\007 \003(\0132B" - + ".google.cloud.securitycenter.v1beta1.Fin" - + "ding.SourcePropertiesEntry\022J\n\016security_m" - + "arks\030\010 \001(\01322.google.cloud.securitycenter" - + ".v1beta1.SecurityMarks\022.\n\nevent_time\030\t \001" - + "(\0132\032.google.protobuf.Timestamp\022/\n\013create" - + "_time\030\n \001(\0132\032.google.protobuf.Timestamp\032" - + "O\n\025SourcePropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n" - + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001" - + "\"8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTI" - + "VE\020\001\022\014\n\010INACTIVE\020\002B~\n\'com.google.cloud.s" - + "ecuritycenter.v1beta1P\001ZQgoogle.golang.o" - + "rg/genproto/googleapis/cloud/securitycen" - + "ter/v1beta1;securitycenterb\006proto3" + + ".v1beta1\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\0328google/clo" + + "ud/securitycenter/v1beta1/security_marks" + + ".proto\032\034google/protobuf/struct.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032\034google/ap" + + "i/annotations.proto\"\270\005\n\007Finding\022\014\n\004name\030" + + "\001 \001(\t\022\023\n\006parent\030\002 \001(\tB\003\340A\005\022\025\n\rresource_n" + + "ame\030\003 \001(\t\022A\n\005state\030\004 \001(\01622.google.cloud." + + "securitycenter.v1beta1.Finding.State\022\020\n\010" + + "category\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022]\n\021" + + "source_properties\030\007 \003(\0132B.google.cloud.s" + + "ecuritycenter.v1beta1.Finding.SourceProp" + + "ertiesEntry\022O\n\016security_marks\030\010 \001(\01322.go" + + "ogle.cloud.securitycenter.v1beta1.Securi" + + "tyMarksB\003\340A\003\022.\n\nevent_time\030\t \001(\0132\032.googl" + + "e.protobuf.Timestamp\022/\n\013create_time\030\n \001(" + + "\0132\032.google.protobuf.Timestamp\032O\n\025SourceP" + + "ropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001" + + "(\0132\026.google.protobuf.Value:\0028\001\"8\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010IN" + + "ACTIVE\020\002:l\352Ai\n%securitycenter.googleapis" + + ".com/Finding\022@organizations/{organizatio" + + "n}/sources/{source}/findings/{finding}B~" + + "\n\'com.google.cloud.securitycenter.v1beta" + + "1P\001ZQgoogle.golang.org/genproto/googleap" + + "is/cloud/securitycenter/v1beta1;security" + + "centerb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable = @@ -113,10 +112,18 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Key", "Value", }); - com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingSecurityMarksName.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingSecurityMarksName.java index cacb820ba..fd213834a 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingSecurityMarksName.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingSecurityMarksName.java @@ -23,8 +23,13 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * AUTO-GENERATED DOCUMENTATION AND CLASS + * + * @deprecated This resource name class will be removed in the next major version. + */ @javax.annotation.Generated("by GAPIC protoc plugin") +@Deprecated public class FindingSecurityMarksName extends SecuritymarksName { private static final PathTemplate PATH_TEMPLATE = diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java index f2b4a2e9b..73a3e6c60 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java @@ -42,6 +42,12 @@ private GetOrganizationSettingsRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOrganizationSettingsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private GetOrganizationSettingsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -113,11 +118,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Name of the organization to get organization settings for. Its format is
+   * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -134,11 +143,15 @@ public java.lang.String getName() { * * *
-   * Name of the organization to get organization settings for. Its format is
+   * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -485,11 +498,15 @@ public Builder mergeFrom( * * *
-     * Name of the organization to get organization settings for. Its format is
+     * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -506,11 +523,15 @@ public java.lang.String getName() { * * *
-     * Name of the organization to get organization settings for. Its format is
+     * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -527,11 +548,16 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Name of the organization to get organization settings for. Its format is
+     * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -546,11 +572,15 @@ public Builder setName(java.lang.String value) { * * *
-     * Name of the organization to get organization settings for. Its format is
+     * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -562,11 +592,16 @@ public Builder clearName() { * * *
-     * Name of the organization to get organization settings for. Its format is
+     * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java index 879d5a785..a77fe7ac5 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface GetOrganizationSettingsRequestOrBuilder * * *
-   * Name of the organization to get organization settings for. Its format is
+   * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ java.lang.String getName(); /** * * *
-   * Name of the organization to get organization settings for. Its format is
+   * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java index 454e2998d..d231e4da8 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java @@ -41,6 +41,12 @@ private GetSourceRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSourceRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private GetSourceRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -112,11 +117,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Relative resource name of the source. Its format is
+   * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -133,11 +142,15 @@ public java.lang.String getName() { * * *
-   * Relative resource name of the source. Its format is
+   * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -475,11 +488,15 @@ public Builder mergeFrom( * * *
-     * Relative resource name of the source. Its format is
+     * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -496,11 +513,15 @@ public java.lang.String getName() { * * *
-     * Relative resource name of the source. Its format is
+     * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -517,11 +538,16 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Relative resource name of the source. Its format is
+     * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -536,11 +562,15 @@ public Builder setName(java.lang.String value) { * * *
-     * Relative resource name of the source. Its format is
+     * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -552,11 +582,16 @@ public Builder clearName() { * * *
-     * Relative resource name of the source. Its format is
+     * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java index b6ebbc4f5..64dd45436 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface GetSourceRequestOrBuilder * * *
-   * Relative resource name of the source. Its format is
+   * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ java.lang.String getName(); /** * * *
-   * Relative resource name of the source. Its format is
+   * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java index 18f579f1f..3d73e9b6f 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java @@ -44,6 +44,12 @@ private GroupAssetsRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroupAssetsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -57,7 +63,6 @@ private GroupAssetsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -171,11 +176,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Name of the organization to groupBy. Its format is
+   * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -192,11 +201,15 @@ public java.lang.String getParent() { * * *
-   * Name of the organization to groupBy. Its format is
+   * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -239,6 +252,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -278,6 +293,8 @@ public java.lang.String getFilter() { * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -297,7 +314,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-   * Expression that defines what assets fields to use for grouping. The string
+   * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
    * example:
    * "security_center_properties.resource_project,security_center_properties.project".
@@ -309,7 +326,9 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * * security_center_properties.resource_type
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; @@ -326,7 +345,7 @@ public java.lang.String getGroupBy() { * * *
-   * Expression that defines what assets fields to use for grouping. The string
+   * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
    * example:
    * "security_center_properties.resource_project,security_center_properties.project".
@@ -338,7 +357,9 @@ public java.lang.String getGroupBy() {
    * * security_center_properties.resource_type
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for groupBy. */ public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; @@ -378,6 +399,8 @@ public com.google.protobuf.ByteString getGroupByBytes() { * * * .google.protobuf.Duration compare_duration = 4; + * + * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDuration_ != null; @@ -406,6 +429,8 @@ public boolean hasCompareDuration() { * * * .google.protobuf.Duration compare_duration = 4; + * + * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { return compareDuration_ == null @@ -454,6 +479,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * * .google.protobuf.Timestamp read_time = 5; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -469,6 +496,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 5; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -501,6 +530,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string page_token = 7; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -523,6 +554,8 @@ public java.lang.String getPageToken() { * * * string page_token = 7; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -547,6 +580,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * int32 page_size = 8; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -995,11 +1030,15 @@ public Builder mergeFrom( * * *
-     * Name of the organization to groupBy. Its format is
+     * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -1016,11 +1055,15 @@ public java.lang.String getParent() { * * *
-     * Name of the organization to groupBy. Its format is
+     * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -1037,11 +1080,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Name of the organization to groupBy. Its format is
+     * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -1056,11 +1104,15 @@ public Builder setParent(java.lang.String value) { * * *
-     * Name of the organization to groupBy. Its format is
+     * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -1072,11 +1124,16 @@ public Builder clearParent() { * * *
-     * Name of the organization to groupBy. Its format is
+     * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1117,6 +1174,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -1156,6 +1215,8 @@ public java.lang.String getFilter() { * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -1195,6 +1256,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * * * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. */ public Builder setFilter(java.lang.String value) { if (value == null) { @@ -1232,6 +1296,8 @@ public Builder setFilter(java.lang.String value) { * * * string filter = 2; + * + * @return This builder for chaining. */ public Builder clearFilter() { @@ -1266,6 +1332,9 @@ public Builder clearFilter() { * * * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1283,7 +1352,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
-     * Expression that defines what assets fields to use for grouping. The string
+     * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
      * example:
      * "security_center_properties.resource_project,security_center_properties.project".
@@ -1295,7 +1364,9 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * * security_center_properties.resource_type
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; @@ -1312,7 +1383,7 @@ public java.lang.String getGroupBy() { * * *
-     * Expression that defines what assets fields to use for grouping. The string
+     * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
      * example:
      * "security_center_properties.resource_project,security_center_properties.project".
@@ -1324,7 +1395,9 @@ public java.lang.String getGroupBy() {
      * * security_center_properties.resource_type
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for groupBy. */ public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; @@ -1341,7 +1414,7 @@ public com.google.protobuf.ByteString getGroupByBytes() { * * *
-     * Expression that defines what assets fields to use for grouping. The string
+     * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
      * example:
      * "security_center_properties.resource_project,security_center_properties.project".
@@ -1353,7 +1426,10 @@ public com.google.protobuf.ByteString getGroupByBytes() {
      * * security_center_properties.resource_type
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The groupBy to set. + * @return This builder for chaining. */ public Builder setGroupBy(java.lang.String value) { if (value == null) { @@ -1368,7 +1444,7 @@ public Builder setGroupBy(java.lang.String value) { * * *
-     * Expression that defines what assets fields to use for grouping. The string
+     * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
      * example:
      * "security_center_properties.resource_project,security_center_properties.project".
@@ -1380,7 +1456,9 @@ public Builder setGroupBy(java.lang.String value) {
      * * security_center_properties.resource_type
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearGroupBy() { @@ -1392,7 +1470,7 @@ public Builder clearGroupBy() { * * *
-     * Expression that defines what assets fields to use for grouping. The string
+     * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
      * example:
      * "security_center_properties.resource_project,security_center_properties.project".
@@ -1404,7 +1482,10 @@ public Builder clearGroupBy() {
      * * security_center_properties.resource_type
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for groupBy to set. + * @return This builder for chaining. */ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1447,6 +1528,8 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Duration compare_duration = 4; + * + * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; @@ -1475,6 +1558,8 @@ public boolean hasCompareDuration() { * * * .google.protobuf.Duration compare_duration = 4; + * + * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { @@ -1759,6 +1844,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * * .google.protobuf.Timestamp read_time = 5; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -1774,6 +1861,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 5; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -1955,6 +2044,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string page_token = 7; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -1977,6 +2068,8 @@ public java.lang.String getPageToken() { * * * string page_token = 7; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -1999,6 +2092,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 7; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -2019,6 +2115,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 7; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -2036,6 +2134,9 @@ public Builder clearPageToken() { * * * string page_token = 7; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2058,6 +2159,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 8; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -2071,6 +2174,9 @@ public int getPageSize() { * * * int32 page_size = 8; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -2087,6 +2193,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 8; + * + * @return This builder for chaining. */ public Builder clearPageSize() { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java index 85d12fe95..def9a5150 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface GroupAssetsRequestOrBuilder * * *
-   * Name of the organization to groupBy. Its format is
+   * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Name of the organization to groupBy. Its format is
+   * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -73,6 +81,8 @@ public interface GroupAssetsRequestOrBuilder * * * string filter = 2; + * + * @return The filter. */ java.lang.String getFilter(); /** @@ -102,6 +112,8 @@ public interface GroupAssetsRequestOrBuilder * * * string filter = 2; + * + * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); @@ -109,7 +121,7 @@ public interface GroupAssetsRequestOrBuilder * * *
-   * Expression that defines what assets fields to use for grouping. The string
+   * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
    * example:
    * "security_center_properties.resource_project,security_center_properties.project".
@@ -121,14 +133,16 @@ public interface GroupAssetsRequestOrBuilder
    * * security_center_properties.resource_type
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The groupBy. */ java.lang.String getGroupBy(); /** * * *
-   * Expression that defines what assets fields to use for grouping. The string
+   * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
    * example:
    * "security_center_properties.resource_project,security_center_properties.project".
@@ -140,7 +154,9 @@ public interface GroupAssetsRequestOrBuilder
    * * security_center_properties.resource_type
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for groupBy. */ com.google.protobuf.ByteString getGroupByBytes(); @@ -168,6 +184,8 @@ public interface GroupAssetsRequestOrBuilder * * * .google.protobuf.Duration compare_duration = 4; + * + * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** @@ -194,6 +212,8 @@ public interface GroupAssetsRequestOrBuilder * * * .google.protobuf.Duration compare_duration = 4; + * + * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** @@ -234,6 +254,8 @@ public interface GroupAssetsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 5; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -247,6 +269,8 @@ public interface GroupAssetsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 5; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -273,6 +297,8 @@ public interface GroupAssetsRequestOrBuilder * * * string page_token = 7; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -285,6 +311,8 @@ public interface GroupAssetsRequestOrBuilder * * * string page_token = 7; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); @@ -297,6 +325,8 @@ public interface GroupAssetsRequestOrBuilder * * * int32 page_size = 8; + * + * @return The pageSize. */ int getPageSize(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java index 082512f73..9d2dc2edb 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java @@ -42,6 +42,12 @@ private GroupAssetsResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroupAssetsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -138,7 +144,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.Builder.class); } - private int bitField0_; public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** @@ -225,6 +230,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -237,6 +244,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -265,6 +274,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -286,6 +297,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -573,7 +586,6 @@ public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse buildPartial( com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse result = new com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -589,7 +601,6 @@ public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse buildPartial( result.readTime_ = readTimeBuilder_.build(); } result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1118,6 +1129,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -1130,6 +1143,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -1289,6 +1304,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -1310,6 +1327,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1331,6 +1350,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 3; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -1350,6 +1372,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 3; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1366,6 +1390,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 3; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java index bf8cc88ea..bc298ecaa 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java @@ -94,6 +94,8 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -104,6 +106,8 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -126,6 +130,8 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr * * * string next_page_token = 3; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -137,6 +143,8 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java index bd0d70193..d389ff2bc 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java @@ -44,6 +44,12 @@ private GroupFindingsRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroupFindingsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -57,7 +63,6 @@ private GroupFindingsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -156,13 +161,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Name of the source to groupBy. Its format is
+   * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
    * all sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -179,13 +188,17 @@ public java.lang.String getParent() { * * *
-   * Name of the source to groupBy. Its format is
+   * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
    * all sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -226,6 +239,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -263,6 +278,8 @@ public java.lang.String getFilter() { * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -282,7 +299,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-   * Expression that defines what assets fields to use for grouping (including
+   * Required. Expression that defines what assets fields to use for grouping (including
    * `state`). The string value should follow SQL syntax: comma separated list
    * of fields. For example:
    * "parent,resource_name".
@@ -293,7 +310,9 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * * parent
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; @@ -310,7 +329,7 @@ public java.lang.String getGroupBy() { * * *
-   * Expression that defines what assets fields to use for grouping (including
+   * Required. Expression that defines what assets fields to use for grouping (including
    * `state`). The string value should follow SQL syntax: comma separated list
    * of fields. For example:
    * "parent,resource_name".
@@ -321,7 +340,9 @@ public java.lang.String getGroupBy() {
    * * parent
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for groupBy. */ public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; @@ -348,6 +369,8 @@ public com.google.protobuf.ByteString getGroupByBytes() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -363,6 +386,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -395,6 +420,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string page_token = 5; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -417,6 +444,8 @@ public java.lang.String getPageToken() { * * * string page_token = 5; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -441,6 +470,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * int32 page_size = 6; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -863,13 +894,17 @@ public Builder mergeFrom( * * *
-     * Name of the source to groupBy. Its format is
+     * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
      * all sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -886,13 +921,17 @@ public java.lang.String getParent() { * * *
-     * Name of the source to groupBy. Its format is
+     * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
      * all sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -909,13 +948,18 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Name of the source to groupBy. Its format is
+     * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
      * all sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -930,13 +974,17 @@ public Builder setParent(java.lang.String value) { * * *
-     * Name of the source to groupBy. Its format is
+     * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
      * all sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -948,13 +996,18 @@ public Builder clearParent() { * * *
-     * Name of the source to groupBy. Its format is
+     * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
      * all sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -993,6 +1046,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -1030,6 +1085,8 @@ public java.lang.String getFilter() { * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -1067,6 +1124,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * * * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. */ public Builder setFilter(java.lang.String value) { if (value == null) { @@ -1102,6 +1162,8 @@ public Builder setFilter(java.lang.String value) { * * * string filter = 2; + * + * @return This builder for chaining. */ public Builder clearFilter() { @@ -1134,6 +1196,9 @@ public Builder clearFilter() { * * * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1151,7 +1216,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
-     * Expression that defines what assets fields to use for grouping (including
+     * Required. Expression that defines what assets fields to use for grouping (including
      * `state`). The string value should follow SQL syntax: comma separated list
      * of fields. For example:
      * "parent,resource_name".
@@ -1162,7 +1227,9 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * * parent
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; @@ -1179,7 +1246,7 @@ public java.lang.String getGroupBy() { * * *
-     * Expression that defines what assets fields to use for grouping (including
+     * Required. Expression that defines what assets fields to use for grouping (including
      * `state`). The string value should follow SQL syntax: comma separated list
      * of fields. For example:
      * "parent,resource_name".
@@ -1190,7 +1257,9 @@ public java.lang.String getGroupBy() {
      * * parent
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for groupBy. */ public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; @@ -1207,7 +1276,7 @@ public com.google.protobuf.ByteString getGroupByBytes() { * * *
-     * Expression that defines what assets fields to use for grouping (including
+     * Required. Expression that defines what assets fields to use for grouping (including
      * `state`). The string value should follow SQL syntax: comma separated list
      * of fields. For example:
      * "parent,resource_name".
@@ -1218,7 +1287,10 @@ public com.google.protobuf.ByteString getGroupByBytes() {
      * * parent
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The groupBy to set. + * @return This builder for chaining. */ public Builder setGroupBy(java.lang.String value) { if (value == null) { @@ -1233,7 +1305,7 @@ public Builder setGroupBy(java.lang.String value) { * * *
-     * Expression that defines what assets fields to use for grouping (including
+     * Required. Expression that defines what assets fields to use for grouping (including
      * `state`). The string value should follow SQL syntax: comma separated list
      * of fields. For example:
      * "parent,resource_name".
@@ -1244,7 +1316,9 @@ public Builder setGroupBy(java.lang.String value) {
      * * parent
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearGroupBy() { @@ -1256,7 +1330,7 @@ public Builder clearGroupBy() { * * *
-     * Expression that defines what assets fields to use for grouping (including
+     * Required. Expression that defines what assets fields to use for grouping (including
      * `state`). The string value should follow SQL syntax: comma separated list
      * of fields. For example:
      * "parent,resource_name".
@@ -1267,7 +1341,10 @@ public Builder clearGroupBy() {
      * * parent
      * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for groupBy to set. + * @return This builder for chaining. */ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1297,6 +1374,8 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -1312,6 +1391,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -1493,6 +1574,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string page_token = 5; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -1515,6 +1598,8 @@ public java.lang.String getPageToken() { * * * string page_token = 5; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -1537,6 +1622,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 5; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -1557,6 +1645,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 5; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1574,6 +1664,9 @@ public Builder clearPageToken() { * * * string page_token = 5; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1596,6 +1689,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 6; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -1609,6 +1704,9 @@ public int getPageSize() { * * * int32 page_size = 6; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -1625,6 +1723,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 6; + * + * @return This builder for chaining. */ public Builder clearPageSize() { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java index 7b74c3336..ec7059d11 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java @@ -27,26 +27,34 @@ public interface GroupFindingsRequestOrBuilder * * *
-   * Name of the source to groupBy. Its format is
+   * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
    * all sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Name of the source to groupBy. Its format is
+   * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
    * all sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -75,6 +83,8 @@ public interface GroupFindingsRequestOrBuilder * * * string filter = 2; + * + * @return The filter. */ java.lang.String getFilter(); /** @@ -102,6 +112,8 @@ public interface GroupFindingsRequestOrBuilder * * * string filter = 2; + * + * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); @@ -109,7 +121,7 @@ public interface GroupFindingsRequestOrBuilder * * *
-   * Expression that defines what assets fields to use for grouping (including
+   * Required. Expression that defines what assets fields to use for grouping (including
    * `state`). The string value should follow SQL syntax: comma separated list
    * of fields. For example:
    * "parent,resource_name".
@@ -120,14 +132,16 @@ public interface GroupFindingsRequestOrBuilder
    * * parent
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The groupBy. */ java.lang.String getGroupBy(); /** * * *
-   * Expression that defines what assets fields to use for grouping (including
+   * Required. Expression that defines what assets fields to use for grouping (including
    * `state`). The string value should follow SQL syntax: comma separated list
    * of fields. For example:
    * "parent,resource_name".
@@ -138,7 +152,9 @@ public interface GroupFindingsRequestOrBuilder
    * * parent
    * 
* - * string group_by = 3; + * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for groupBy. */ com.google.protobuf.ByteString getGroupByBytes(); @@ -153,6 +169,8 @@ public interface GroupFindingsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -166,6 +184,8 @@ public interface GroupFindingsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -192,6 +212,8 @@ public interface GroupFindingsRequestOrBuilder * * * string page_token = 5; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -204,6 +226,8 @@ public interface GroupFindingsRequestOrBuilder * * * string page_token = 5; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); @@ -216,6 +240,8 @@ public interface GroupFindingsRequestOrBuilder * * * int32 page_size = 6; + * + * @return The pageSize. */ int getPageSize(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java index 7222b0975..d3dd5509f 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java @@ -42,6 +42,12 @@ private GroupFindingsResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroupFindingsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -138,7 +144,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.Builder.class); } - private int bitField0_; public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** @@ -225,6 +230,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -237,6 +244,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -265,6 +274,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -286,6 +297,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -574,7 +587,6 @@ public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse buildPartia com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse result = new com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -590,7 +602,6 @@ public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse buildPartia result.readTime_ = readTimeBuilder_.build(); } result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1121,6 +1132,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -1133,6 +1146,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -1292,6 +1307,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -1313,6 +1330,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1334,6 +1353,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 3; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -1353,6 +1375,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 3; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1369,6 +1393,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 3; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java index 97770e462..52a96c195 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java @@ -94,6 +94,8 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -104,6 +106,8 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -126,6 +130,8 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr * * * string next_page_token = 3; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -137,6 +143,8 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java index d50da5a69..e2c14ea00 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java @@ -39,6 +39,12 @@ private GroupResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { private GroupResult() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroupResult(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -129,7 +135,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.cloud.securitycenter.v1beta1.GroupResult.Builder.class); } - private int bitField0_; public static final int PROPERTIES_FIELD_NUMBER = 1; private static final class PropertiesDefaultEntryHolder { @@ -239,6 +244,8 @@ public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { * * * int64 count = 2; + * + * @return The count. */ public long getCount() { return count_; @@ -516,11 +523,9 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult buildPartial() { com.google.cloud.securitycenter.v1beta1.GroupResult result = new com.google.cloud.securitycenter.v1beta1.GroupResult(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); result.count_ = count_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -774,6 +779,8 @@ public Builder putAllProperties( * * * int64 count = 2; + * + * @return The count. */ public long getCount() { return count_; @@ -786,6 +793,9 @@ public long getCount() { * * * int64 count = 2; + * + * @param value The count to set. + * @return This builder for chaining. */ public Builder setCount(long value) { @@ -801,6 +811,8 @@ public Builder setCount(long value) { * * * int64 count = 2; + * + * @return This builder for chaining. */ public Builder clearCount() { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java index 713009c3c..626846b06 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java @@ -86,6 +86,8 @@ com.google.protobuf.Value getPropertiesOrDefault( * * * int64 count = 2; + * + * @return The count. */ long getCount(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java index 3fb1c520e..5f7f03e4e 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java @@ -44,6 +44,12 @@ private ListAssetsRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAssetsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -57,7 +63,6 @@ private ListAssetsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -186,11 +191,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Name of the organization assets should belong to. Its format is
+   * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -207,11 +216,15 @@ public java.lang.String getParent() { * * *
-   * Name of the organization assets should belong to. Its format is
+   * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -254,6 +267,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -293,6 +308,8 @@ public java.lang.String getFilter() { * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -323,6 +340,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * * * string order_by = 3; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -350,6 +369,8 @@ public java.lang.String getOrderBy() { * * * string order_by = 3; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -376,6 +397,8 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -391,6 +414,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -439,6 +464,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDuration_ != null; @@ -469,6 +496,8 @@ public boolean hasCompareDuration() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { return compareDuration_ == null @@ -512,13 +541,15 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * *
-   * Optional.
-   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMask_ != null; @@ -527,13 +558,15 @@ public boolean hasFieldMask() { * * *
-   * Optional.
-   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; @@ -542,13 +575,13 @@ public com.google.protobuf.FieldMask getFieldMask() { * * *
-   * Optional.
-   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { return getFieldMask(); @@ -566,6 +599,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * * string page_token = 8; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -588,6 +623,8 @@ public java.lang.String getPageToken() { * * * string page_token = 8; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -612,6 +649,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * int32 page_size = 9; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -1088,11 +1127,15 @@ public Builder mergeFrom( * * *
-     * Name of the organization assets should belong to. Its format is
+     * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -1109,11 +1152,15 @@ public java.lang.String getParent() { * * *
-     * Name of the organization assets should belong to. Its format is
+     * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -1130,11 +1177,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Name of the organization assets should belong to. Its format is
+     * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -1149,11 +1201,15 @@ public Builder setParent(java.lang.String value) { * * *
-     * Name of the organization assets should belong to. Its format is
+     * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -1165,11 +1221,16 @@ public Builder clearParent() { * * *
-     * Name of the organization assets should belong to. Its format is
+     * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1210,6 +1271,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -1249,6 +1312,8 @@ public java.lang.String getFilter() { * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -1288,6 +1353,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * * * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. */ public Builder setFilter(java.lang.String value) { if (value == null) { @@ -1325,6 +1393,8 @@ public Builder setFilter(java.lang.String value) { * * * string filter = 2; + * + * @return This builder for chaining. */ public Builder clearFilter() { @@ -1359,6 +1429,9 @@ public Builder clearFilter() { * * * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1387,6 +1460,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * * string order_by = 3; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -1414,6 +1489,8 @@ public java.lang.String getOrderBy() { * * * string order_by = 3; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -1441,6 +1518,9 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * * string order_by = 3; + * + * @param value The orderBy to set. + * @return This builder for chaining. */ public Builder setOrderBy(java.lang.String value) { if (value == null) { @@ -1466,6 +1546,8 @@ public Builder setOrderBy(java.lang.String value) { * * * string order_by = 3; + * + * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1488,6 +1570,9 @@ public Builder clearOrderBy() { * * * string order_by = 3; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. */ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1517,6 +1602,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -1532,6 +1619,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -1734,6 +1823,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; @@ -1764,6 +1855,8 @@ public boolean hasCompareDuration() { * * * .google.protobuf.Duration compare_duration = 5; + * + * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { @@ -2055,13 +2148,15 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; @@ -2070,13 +2165,15 @@ public boolean hasFieldMask() { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { if (fieldMaskBuilder_ == null) { @@ -2089,13 +2186,13 @@ public com.google.protobuf.FieldMask getFieldMask() { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { @@ -2114,13 +2211,13 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { @@ -2136,13 +2233,13 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { @@ -2163,13 +2260,13 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearFieldMask() { if (fieldMaskBuilder_ == null) { @@ -2186,13 +2283,13 @@ public Builder clearFieldMask() { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { @@ -2203,13 +2300,13 @@ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { @@ -2222,13 +2319,13 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * *
-     * Optional.
-     * A field mask to specify the ListAssetsResult fields to be listed in the
+     * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -2258,6 +2355,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * * string page_token = 8; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -2280,6 +2379,8 @@ public java.lang.String getPageToken() { * * * string page_token = 8; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -2302,6 +2403,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 8; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -2322,6 +2426,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 8; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -2339,6 +2445,9 @@ public Builder clearPageToken() { * * * string page_token = 8; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2361,6 +2470,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 9; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -2374,6 +2485,9 @@ public int getPageSize() { * * * int32 page_size = 9; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -2390,6 +2504,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 9; + * + * @return This builder for chaining. */ public Builder clearPageSize() { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java index f1478b8c5..e5ab53959 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface ListAssetsRequestOrBuilder * * *
-   * Name of the organization assets should belong to. Its format is
+   * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Name of the organization assets should belong to. Its format is
+   * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -73,6 +81,8 @@ public interface ListAssetsRequestOrBuilder * * * string filter = 2; + * + * @return The filter. */ java.lang.String getFilter(); /** @@ -102,6 +112,8 @@ public interface ListAssetsRequestOrBuilder * * * string filter = 2; + * + * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); @@ -120,6 +132,8 @@ public interface ListAssetsRequestOrBuilder * * * string order_by = 3; + * + * @return The orderBy. */ java.lang.String getOrderBy(); /** @@ -137,6 +151,8 @@ public interface ListAssetsRequestOrBuilder * * * string order_by = 3; + * + * @return The bytes for orderBy. */ com.google.protobuf.ByteString getOrderByBytes(); @@ -151,6 +167,8 @@ public interface ListAssetsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -164,6 +182,8 @@ public interface ListAssetsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -206,6 +226,8 @@ public interface ListAssetsRequestOrBuilder * * * .google.protobuf.Duration compare_duration = 5; + * + * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** @@ -234,6 +256,8 @@ public interface ListAssetsRequestOrBuilder * * * .google.protobuf.Duration compare_duration = 5; + * + * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** @@ -269,39 +293,43 @@ public interface ListAssetsRequestOrBuilder * * *
-   * Optional.
-   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** * * *
-   * Optional.
-   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** * * *
-   * Optional.
-   * A field mask to specify the ListAssetsResult fields to be listed in the
+   * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); @@ -315,6 +343,8 @@ public interface ListAssetsRequestOrBuilder * * * string page_token = 8; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -327,6 +357,8 @@ public interface ListAssetsRequestOrBuilder * * * string page_token = 8; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); @@ -339,6 +371,8 @@ public interface ListAssetsRequestOrBuilder * * * int32 page_size = 9; + * + * @return The pageSize. */ int getPageSize(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java index 30f8e034b..4ca284ab3 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java @@ -42,6 +42,12 @@ private ListAssetsResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAssetsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -159,6 +165,8 @@ public interface ListAssetsResultOrBuilder * * * .google.cloud.securitycenter.v1beta1.Asset asset = 1; + * + * @return Whether the asset field is set. */ boolean hasAsset(); /** @@ -169,6 +177,8 @@ public interface ListAssetsResultOrBuilder * * * .google.cloud.securitycenter.v1beta1.Asset asset = 1; + * + * @return The asset. */ com.google.cloud.securitycenter.v1beta1.Asset getAsset(); /** @@ -192,6 +202,8 @@ public interface ListAssetsResultOrBuilder * * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * + * + * @return The enum numeric value on the wire for state. */ int getStateValue(); /** @@ -204,6 +216,8 @@ public interface ListAssetsResultOrBuilder * * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * + * + * @return The state. */ com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State getState(); } @@ -230,6 +244,12 @@ private ListAssetsResult() { state_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAssetsResult(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -243,7 +263,6 @@ private ListAssetsResult( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -439,12 +458,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static State forNumber(int value) { switch (value) { case 0: @@ -519,6 +546,8 @@ private State(int value) { * * * .google.cloud.securitycenter.v1beta1.Asset asset = 1; + * + * @return Whether the asset field is set. */ public boolean hasAsset() { return asset_ != null; @@ -531,6 +560,8 @@ public boolean hasAsset() { * * * .google.cloud.securitycenter.v1beta1.Asset asset = 1; + * + * @return The asset. */ public com.google.cloud.securitycenter.v1beta1.Asset getAsset() { return asset_ == null @@ -562,6 +593,8 @@ public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder( * * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * + * + * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; @@ -576,6 +609,8 @@ public int getStateValue() { * * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * + * + * @return The state. */ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State getState() { @@ -979,6 +1014,8 @@ public Builder mergeFrom( * * * .google.cloud.securitycenter.v1beta1.Asset asset = 1; + * + * @return Whether the asset field is set. */ public boolean hasAsset() { return assetBuilder_ != null || asset_ != null; @@ -991,6 +1028,8 @@ public boolean hasAsset() { * * * .google.cloud.securitycenter.v1beta1.Asset asset = 1; + * + * @return The asset. */ public com.google.cloud.securitycenter.v1beta1.Asset getAsset() { if (assetBuilder_ == null) { @@ -1158,6 +1197,8 @@ public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder( * * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * + * + * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; @@ -1172,6 +1213,9 @@ public int getStateValue() { * * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; @@ -1188,6 +1232,8 @@ public Builder setStateValue(int value) { * * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * + * + * @return The state. */ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State getState() { @@ -1210,6 +1256,9 @@ public Builder setStateValue(int value) { * * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * + * + * @param value The state to set. + * @return This builder for chaining. */ public Builder setState( com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State value) { @@ -1231,6 +1280,8 @@ public Builder setState( * * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * + * + * @return This builder for chaining. */ public Builder clearState() { @@ -1295,7 +1346,6 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; public static final int LIST_ASSETS_RESULTS_FIELD_NUMBER = 1; private java.util.List< com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult> @@ -1387,6 +1437,8 @@ public int getListAssetsResultsCount() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -1399,6 +1451,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -1427,6 +1481,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -1448,6 +1504,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1471,6 +1529,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * int32 total_size = 4; + * + * @return The totalSize. */ public int getTotalSize() { return totalSize_; @@ -1762,7 +1822,6 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse buildPartial() com.google.cloud.securitycenter.v1beta1.ListAssetsResponse result = new com.google.cloud.securitycenter.v1beta1.ListAssetsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (listAssetsResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = java.util.Collections.unmodifiableList(listAssetsResults_); @@ -1779,7 +1838,6 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse buildPartial() } result.nextPageToken_ = nextPageToken_; result.totalSize_ = totalSize_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -2336,6 +2394,8 @@ public Builder removeListAssetsResults(int index) { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -2348,6 +2408,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -2507,6 +2569,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -2528,6 +2592,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -2549,6 +2615,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 3; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -2568,6 +2637,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 3; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -2584,6 +2655,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 3; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2605,6 +2679,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 total_size = 4; + * + * @return The totalSize. */ public int getTotalSize() { return totalSize_; @@ -2617,6 +2693,9 @@ public int getTotalSize() { * * * int32 total_size = 4; + * + * @param value The totalSize to set. + * @return This builder for chaining. */ public Builder setTotalSize(int value) { @@ -2632,6 +2711,8 @@ public Builder setTotalSize(int value) { * * * int32 total_size = 4; + * + * @return This builder for chaining. */ public Builder clearTotalSize() { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java index 88e69881a..9bd7384e6 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java @@ -98,6 +98,8 @@ com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getL * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -108,6 +110,8 @@ com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getL * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -130,6 +134,8 @@ com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getL * * * string next_page_token = 3; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -141,6 +147,8 @@ com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getL * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); @@ -152,6 +160,8 @@ com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getL * * * int32 total_size = 4; + * + * @return The totalSize. */ int getTotalSize(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java index 9af287e5e..8dbfc6c2a 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java @@ -44,6 +44,12 @@ private ListFindingsRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFindingsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -57,7 +63,6 @@ private ListFindingsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -171,13 +176,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Name of the source the findings belong to. Its format is
+   * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
    * sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -194,13 +203,17 @@ public java.lang.String getParent() { * * *
-   * Name of the source the findings belong to. Its format is
+   * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
    * sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -241,6 +254,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -278,6 +293,8 @@ public java.lang.String getFilter() { * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -308,6 +325,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * * * string order_by = 3; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -335,6 +354,8 @@ public java.lang.String getOrderBy() { * * * string order_by = 3; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -361,6 +382,8 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -376,6 +399,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -402,12 +427,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * *
-   * Optional.
-   * A field mask to specify the Finding fields to be listed in the response.
+   * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMask_ != null; @@ -416,12 +443,14 @@ public boolean hasFieldMask() { * * *
-   * Optional.
-   * A field mask to specify the Finding fields to be listed in the response.
+   * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; @@ -430,12 +459,12 @@ public com.google.protobuf.FieldMask getFieldMask() { * * *
-   * Optional.
-   * A field mask to specify the Finding fields to be listed in the response.
+   * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { return getFieldMask(); @@ -453,6 +482,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * * string page_token = 6; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -475,6 +506,8 @@ public java.lang.String getPageToken() { * * * string page_token = 6; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -499,6 +532,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * int32 page_size = 7; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -947,13 +982,17 @@ public Builder mergeFrom( * * *
-     * Name of the source the findings belong to. Its format is
+     * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
      * sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -970,13 +1009,17 @@ public java.lang.String getParent() { * * *
-     * Name of the source the findings belong to. Its format is
+     * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
      * sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -993,13 +1036,18 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Name of the source the findings belong to. Its format is
+     * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
      * sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -1014,13 +1062,17 @@ public Builder setParent(java.lang.String value) { * * *
-     * Name of the source the findings belong to. Its format is
+     * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
      * sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -1032,13 +1084,18 @@ public Builder clearParent() { * * *
-     * Name of the source the findings belong to. Its format is
+     * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
      * sources provide a source_id of `-`. For example:
-     * organizations/123/sources/-
+     * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1077,6 +1134,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * * string filter = 2; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -1114,6 +1173,8 @@ public java.lang.String getFilter() { * * * string filter = 2; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -1151,6 +1212,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * * * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. */ public Builder setFilter(java.lang.String value) { if (value == null) { @@ -1186,6 +1250,8 @@ public Builder setFilter(java.lang.String value) { * * * string filter = 2; + * + * @return This builder for chaining. */ public Builder clearFilter() { @@ -1218,6 +1284,9 @@ public Builder clearFilter() { * * * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1246,6 +1315,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * * string order_by = 3; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -1273,6 +1344,8 @@ public java.lang.String getOrderBy() { * * * string order_by = 3; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -1300,6 +1373,9 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * * string order_by = 3; + * + * @param value The orderBy to set. + * @return This builder for chaining. */ public Builder setOrderBy(java.lang.String value) { if (value == null) { @@ -1325,6 +1401,8 @@ public Builder setOrderBy(java.lang.String value) { * * * string order_by = 3; + * + * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1347,6 +1425,9 @@ public Builder clearOrderBy() { * * * string order_by = 3; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. */ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1376,6 +1457,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -1391,6 +1474,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -1571,12 +1656,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; @@ -1585,12 +1672,14 @@ public boolean hasFieldMask() { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { if (fieldMaskBuilder_ == null) { @@ -1603,12 +1692,12 @@ public com.google.protobuf.FieldMask getFieldMask() { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { @@ -1627,12 +1716,12 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { @@ -1648,12 +1737,12 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { @@ -1674,12 +1763,12 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearFieldMask() { if (fieldMaskBuilder_ == null) { @@ -1696,12 +1785,12 @@ public Builder clearFieldMask() { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { @@ -1712,12 +1801,12 @@ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { @@ -1730,12 +1819,12 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * *
-     * Optional.
-     * A field mask to specify the Finding fields to be listed in the response.
+     * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -1765,6 +1854,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * * string page_token = 6; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -1787,6 +1878,8 @@ public java.lang.String getPageToken() { * * * string page_token = 6; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -1809,6 +1902,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 6; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -1829,6 +1925,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 6; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1846,6 +1944,9 @@ public Builder clearPageToken() { * * * string page_token = 6; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1868,6 +1969,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 7; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -1881,6 +1984,9 @@ public int getPageSize() { * * * int32 page_size = 7; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -1897,6 +2003,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 7; + * + * @return This builder for chaining. */ public Builder clearPageSize() { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java index da2ebb173..7a65c0574 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java @@ -27,26 +27,34 @@ public interface ListFindingsRequestOrBuilder * * *
-   * Name of the source the findings belong to. Its format is
+   * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
    * sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Name of the source the findings belong to. Its format is
+   * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
    * sources provide a source_id of `-`. For example:
-   * organizations/123/sources/-
+   * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -75,6 +83,8 @@ public interface ListFindingsRequestOrBuilder * * * string filter = 2; + * + * @return The filter. */ java.lang.String getFilter(); /** @@ -102,6 +112,8 @@ public interface ListFindingsRequestOrBuilder * * * string filter = 2; + * + * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); @@ -120,6 +132,8 @@ public interface ListFindingsRequestOrBuilder * * * string order_by = 3; + * + * @return The orderBy. */ java.lang.String getOrderBy(); /** @@ -137,6 +151,8 @@ public interface ListFindingsRequestOrBuilder * * * string order_by = 3; + * + * @return The bytes for orderBy. */ com.google.protobuf.ByteString getOrderByBytes(); @@ -151,6 +167,8 @@ public interface ListFindingsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 4; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -164,6 +182,8 @@ public interface ListFindingsRequestOrBuilder * * * .google.protobuf.Timestamp read_time = 4; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -184,36 +204,40 @@ public interface ListFindingsRequestOrBuilder * * *
-   * Optional.
-   * A field mask to specify the Finding fields to be listed in the response.
+   * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** * * *
-   * Optional.
-   * A field mask to specify the Finding fields to be listed in the response.
+   * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** * * *
-   * Optional.
-   * A field mask to specify the Finding fields to be listed in the response.
+   * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); @@ -227,6 +251,8 @@ public interface ListFindingsRequestOrBuilder * * * string page_token = 6; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -239,6 +265,8 @@ public interface ListFindingsRequestOrBuilder * * * string page_token = 6; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); @@ -251,6 +279,8 @@ public interface ListFindingsRequestOrBuilder * * * int32 page_size = 7; + * + * @return The pageSize. */ int getPageSize(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java index 8c37be49c..aecbdbdbe 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java @@ -42,6 +42,12 @@ private ListFindingsResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFindingsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -142,7 +148,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.Builder.class); } - private int bitField0_; public static final int FINDINGS_FIELD_NUMBER = 1; private java.util.List findings_; /** @@ -217,6 +222,8 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBui * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTime_ != null; @@ -229,6 +236,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; @@ -257,6 +266,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -278,6 +289,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -301,6 +314,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * int32 total_size = 4; + * + * @return The totalSize. */ public int getTotalSize() { return totalSize_; @@ -592,7 +607,6 @@ public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse buildPartial com.google.cloud.securitycenter.v1beta1.ListFindingsResponse result = new com.google.cloud.securitycenter.v1beta1.ListFindingsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -609,7 +623,6 @@ public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse buildPartial } result.nextPageToken_ = nextPageToken_; result.totalSize_ = totalSize_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1096,6 +1109,8 @@ public com.google.cloud.securitycenter.v1beta1.Finding.Builder addFindingsBuilde * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; @@ -1108,6 +1123,8 @@ public boolean hasReadTime() { * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { @@ -1267,6 +1284,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * * string next_page_token = 3; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -1288,6 +1307,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1309,6 +1330,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 3; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -1328,6 +1352,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 3; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1344,6 +1370,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 3; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1365,6 +1394,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 total_size = 4; + * + * @return The totalSize. */ public int getTotalSize() { return totalSize_; @@ -1377,6 +1408,9 @@ public int getTotalSize() { * * * int32 total_size = 4; + * + * @param value The totalSize to set. + * @return This builder for chaining. */ public Builder setTotalSize(int value) { @@ -1392,6 +1426,8 @@ public Builder setTotalSize(int value) { * * * int32 total_size = 4; + * + * @return This builder for chaining. */ public Builder clearTotalSize() { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java index b79d97798..e1652c2d7 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java @@ -83,6 +83,8 @@ public interface ListFindingsResponseOrBuilder * * * .google.protobuf.Timestamp read_time = 2; + * + * @return Whether the readTime field is set. */ boolean hasReadTime(); /** @@ -93,6 +95,8 @@ public interface ListFindingsResponseOrBuilder * * * .google.protobuf.Timestamp read_time = 2; + * + * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** @@ -115,6 +119,8 @@ public interface ListFindingsResponseOrBuilder * * * string next_page_token = 3; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -126,6 +132,8 @@ public interface ListFindingsResponseOrBuilder * * * string next_page_token = 3; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); @@ -137,6 +145,8 @@ public interface ListFindingsResponseOrBuilder * * * int32 total_size = 4; + * + * @return The totalSize. */ int getTotalSize(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java index 6198a6387..a8867d41b 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java @@ -42,6 +42,12 @@ private ListSourcesRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSourcesRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private ListSourcesRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -125,11 +130,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name of the parent of sources to list. Its format should be
+   * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -146,11 +155,15 @@ public java.lang.String getParent() { * * *
-   * Resource name of the parent of sources to list. Its format should be
+   * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -176,6 +189,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string page_token = 2; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -198,6 +213,8 @@ public java.lang.String getPageToken() { * * * string page_token = 2; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -222,6 +239,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * int32 page_size = 7; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -582,11 +601,15 @@ public Builder mergeFrom( * * *
-     * Resource name of the parent of sources to list. Its format should be
+     * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -603,11 +626,15 @@ public java.lang.String getParent() { * * *
-     * Resource name of the parent of sources to list. Its format should be
+     * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -624,11 +651,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Resource name of the parent of sources to list. Its format should be
+     * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -643,11 +675,15 @@ public Builder setParent(java.lang.String value) { * * *
-     * Resource name of the parent of sources to list. Its format should be
+     * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -659,11 +695,16 @@ public Builder clearParent() { * * *
-     * Resource name of the parent of sources to list. Its format should be
+     * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -687,6 +728,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * * string page_token = 2; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -709,6 +752,8 @@ public java.lang.String getPageToken() { * * * string page_token = 2; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -731,6 +776,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 2; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -751,6 +799,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 2; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -768,6 +818,9 @@ public Builder clearPageToken() { * * * string page_token = 2; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -790,6 +843,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 7; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -803,6 +858,9 @@ public int getPageSize() { * * * int32 page_size = 7; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -819,6 +877,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 7; + * + * @return This builder for chaining. */ public Builder clearPageSize() { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java index 9b9cd73b7..4a77bb7c8 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface ListSourcesRequestOrBuilder * * *
-   * Resource name of the parent of sources to list. Its format should be
+   * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Resource name of the parent of sources to list. Its format should be
+   * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -56,6 +64,8 @@ public interface ListSourcesRequestOrBuilder * * * string page_token = 2; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -68,6 +78,8 @@ public interface ListSourcesRequestOrBuilder * * * string page_token = 2; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); @@ -80,6 +92,8 @@ public interface ListSourcesRequestOrBuilder * * * int32 page_size = 7; + * + * @return The pageSize. */ int getPageSize(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java index b98e362ad..de3d6e918 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java @@ -42,6 +42,12 @@ private ListSourcesResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSourcesResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -122,7 +128,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.Builder.class); } - private int bitField0_; public static final int SOURCES_FIELD_NUMBER = 1; private java.util.List sources_; /** @@ -198,6 +203,8 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuild * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -219,6 +226,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -486,7 +495,6 @@ public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse buildPartial( com.google.cloud.securitycenter.v1beta1.ListSourcesResponse result = new com.google.cloud.securitycenter.v1beta1.ListSourcesResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (sourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); @@ -497,7 +505,6 @@ public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse buildPartial( result.sources_ = sourcesBuilder_.build(); } result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -972,6 +979,8 @@ public com.google.cloud.securitycenter.v1beta1.Source.Builder addSourcesBuilder( * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -993,6 +1002,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1014,6 +1025,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -1033,6 +1047,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 2; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1049,6 +1065,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java index 2b1d555bd..81abe5b82 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java @@ -84,6 +84,8 @@ public interface ListSourcesResponseOrBuilder * * * string next_page_token = 2; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -95,6 +97,8 @@ public interface ListSourcesResponseOrBuilder * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java index a58d7e667..03f808dd5 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class OrganizationName implements ResourceName { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java index 1fc17dd52..edbea0e60 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java @@ -42,6 +42,12 @@ private OrganizationSettings() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OrganizationSettings(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private OrganizationSettings( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -145,6 +150,8 @@ public interface AssetDiscoveryConfigOrBuilder * * * repeated string project_ids = 1; + * + * @return A list containing the projectIds. */ java.util.List getProjectIdsList(); /** @@ -155,6 +162,8 @@ public interface AssetDiscoveryConfigOrBuilder * * * repeated string project_ids = 1; + * + * @return The count of projectIds. */ int getProjectIdsCount(); /** @@ -165,6 +174,9 @@ public interface AssetDiscoveryConfigOrBuilder * * * repeated string project_ids = 1; + * + * @param index The index of the element to return. + * @return The projectIds at the given index. */ java.lang.String getProjectIds(int index); /** @@ -175,6 +187,9 @@ public interface AssetDiscoveryConfigOrBuilder * * * repeated string project_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the projectIds at the given index. */ com.google.protobuf.ByteString getProjectIdsBytes(int index); @@ -188,6 +203,8 @@ public interface AssetDiscoveryConfigOrBuilder * * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @return The enum numeric value on the wire for inclusionMode. */ int getInclusionModeValue(); /** @@ -200,6 +217,8 @@ public interface AssetDiscoveryConfigOrBuilder * * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @return The inclusionMode. */ com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode(); @@ -229,6 +248,12 @@ private AssetDiscoveryConfig() { inclusionMode_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AssetDiscoveryConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -405,12 +430,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @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 InclusionMode 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 InclusionMode forNumber(int value) { switch (value) { case 0: @@ -473,7 +506,6 @@ private InclusionMode(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode) } - private int bitField0_; public static final int PROJECT_IDS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList projectIds_; /** @@ -484,6 +516,8 @@ private InclusionMode(int value) { * * * repeated string project_ids = 1; + * + * @return A list containing the projectIds. */ public com.google.protobuf.ProtocolStringList getProjectIdsList() { return projectIds_; @@ -496,6 +530,8 @@ public com.google.protobuf.ProtocolStringList getProjectIdsList() { * * * repeated string project_ids = 1; + * + * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); @@ -508,6 +544,9 @@ public int getProjectIdsCount() { * * * repeated string project_ids = 1; + * + * @param index The index of the element to return. + * @return The projectIds at the given index. */ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); @@ -520,6 +559,9 @@ public java.lang.String getProjectIds(int index) { * * * repeated string project_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the projectIds at the given index. */ public com.google.protobuf.ByteString getProjectIdsBytes(int index) { return projectIds_.getByteString(index); @@ -537,6 +579,8 @@ public com.google.protobuf.ByteString getProjectIdsBytes(int index) { * * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @return The enum numeric value on the wire for inclusionMode. */ public int getInclusionModeValue() { return inclusionMode_; @@ -551,6 +595,8 @@ public int getInclusionModeValue() { * * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @return The inclusionMode. */ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig .InclusionMode @@ -847,14 +893,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { new com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig( this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.projectIds_ = projectIds_; result.inclusionMode_ = inclusionMode_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -977,6 +1021,8 @@ private void ensureProjectIdsIsMutable() { * * * repeated string project_ids = 1; + * + * @return A list containing the projectIds. */ public com.google.protobuf.ProtocolStringList getProjectIdsList() { return projectIds_.getUnmodifiableView(); @@ -989,6 +1035,8 @@ public com.google.protobuf.ProtocolStringList getProjectIdsList() { * * * repeated string project_ids = 1; + * + * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); @@ -1001,6 +1049,9 @@ public int getProjectIdsCount() { * * * repeated string project_ids = 1; + * + * @param index The index of the element to return. + * @return The projectIds at the given index. */ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); @@ -1013,6 +1064,9 @@ public java.lang.String getProjectIds(int index) { * * * repeated string project_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the projectIds at the given index. */ public com.google.protobuf.ByteString getProjectIdsBytes(int index) { return projectIds_.getByteString(index); @@ -1025,6 +1079,10 @@ public com.google.protobuf.ByteString getProjectIdsBytes(int index) { * * * repeated string project_ids = 1; + * + * @param index The index to set the value at. + * @param value The projectIds to set. + * @return This builder for chaining. */ public Builder setProjectIds(int index, java.lang.String value) { if (value == null) { @@ -1043,6 +1101,9 @@ public Builder setProjectIds(int index, java.lang.String value) { * * * repeated string project_ids = 1; + * + * @param value The projectIds to add. + * @return This builder for chaining. */ public Builder addProjectIds(java.lang.String value) { if (value == null) { @@ -1061,6 +1122,9 @@ public Builder addProjectIds(java.lang.String value) { * * * repeated string project_ids = 1; + * + * @param values The projectIds to add. + * @return This builder for chaining. */ public Builder addAllProjectIds(java.lang.Iterable values) { ensureProjectIdsIsMutable(); @@ -1076,6 +1140,8 @@ public Builder addAllProjectIds(java.lang.Iterable values) { * * * repeated string project_ids = 1; + * + * @return This builder for chaining. */ public Builder clearProjectIds() { projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1091,6 +1157,9 @@ public Builder clearProjectIds() { * * * repeated string project_ids = 1; + * + * @param value The bytes of the projectIds to add. + * @return This builder for chaining. */ public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1114,6 +1183,8 @@ public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { * * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @return The enum numeric value on the wire for inclusionMode. */ public int getInclusionModeValue() { return inclusionMode_; @@ -1128,6 +1199,9 @@ public int getInclusionModeValue() { * * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @param value The enum numeric value on the wire for inclusionMode to set. + * @return This builder for chaining. */ public Builder setInclusionModeValue(int value) { inclusionMode_ = value; @@ -1144,6 +1218,8 @@ public Builder setInclusionModeValue(int value) { * * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @return The inclusionMode. */ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig .InclusionMode @@ -1169,6 +1245,9 @@ public Builder setInclusionModeValue(int value) { * * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @param value The inclusionMode to set. + * @return This builder for chaining. */ public Builder setInclusionMode( com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig @@ -1192,6 +1271,8 @@ public Builder setInclusionMode( * * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * + * + * @return This builder for chaining. */ public Builder clearInclusionMode() { @@ -1266,10 +1347,12 @@ public com.google.protobuf.Parser getParserForType() { * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1289,10 +1372,12 @@ public java.lang.String getName() { * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1319,6 +1404,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * bool enable_asset_discovery = 2; + * + * @return The enableAssetDiscovery. */ public boolean getEnableAssetDiscovery() { return enableAssetDiscovery_; @@ -1337,6 +1424,8 @@ public boolean getEnableAssetDiscovery() { * * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * + * + * @return Whether the assetDiscoveryConfig field is set. */ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfig_ != null; @@ -1351,6 +1440,8 @@ public boolean hasAssetDiscoveryConfig() { * * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * + * + * @return The assetDiscoveryConfig. */ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { @@ -1749,10 +1840,12 @@ public Builder mergeFrom( * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1772,10 +1865,12 @@ public java.lang.String getName() { * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1795,10 +1890,13 @@ public com.google.protobuf.ByteString getNameBytes() { * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1816,10 +1914,12 @@ public Builder setName(java.lang.String value) { * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1834,10 +1934,13 @@ public Builder clearName() { * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1862,6 +1965,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * bool enable_asset_discovery = 2; + * + * @return The enableAssetDiscovery. */ public boolean getEnableAssetDiscovery() { return enableAssetDiscovery_; @@ -1877,6 +1982,9 @@ public boolean getEnableAssetDiscovery() { * * * bool enable_asset_discovery = 2; + * + * @param value The enableAssetDiscovery to set. + * @return This builder for chaining. */ public Builder setEnableAssetDiscovery(boolean value) { @@ -1895,6 +2003,8 @@ public Builder setEnableAssetDiscovery(boolean value) { * * * bool enable_asset_discovery = 2; + * + * @return This builder for chaining. */ public Builder clearEnableAssetDiscovery() { @@ -1922,6 +2032,8 @@ public Builder clearEnableAssetDiscovery() { * * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * + * + * @return Whether the assetDiscoveryConfig field is set. */ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfigBuilder_ != null || assetDiscoveryConfig_ != null; @@ -1936,6 +2048,8 @@ public boolean hasAssetDiscoveryConfig() { * * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * + * + * @return The assetDiscoveryConfig. */ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java index 44a600086..67bc21577 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class OrganizationSettingsName implements ResourceName { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java index 5ce499310..3de70a28f 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java @@ -30,10 +30,12 @@ public interface OrganizationSettingsOrBuilder * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -43,10 +45,12 @@ public interface OrganizationSettingsOrBuilder * The relative resource name of the settings. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/organizationSettings". + * "organizations/{organization_id}/organizationSettings". * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -61,6 +65,8 @@ public interface OrganizationSettingsOrBuilder * * * bool enable_asset_discovery = 2; + * + * @return The enableAssetDiscovery. */ boolean getEnableAssetDiscovery(); @@ -74,6 +80,8 @@ public interface OrganizationSettingsOrBuilder * * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * + * + * @return Whether the assetDiscoveryConfig field is set. */ boolean hasAssetDiscoveryConfig(); /** @@ -86,6 +94,8 @@ public interface OrganizationSettingsOrBuilder * * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * + * + * @return The assetDiscoveryConfig. */ com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig(); diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java index 3bccc1b27..be3647a89 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java @@ -46,37 +46,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n?google/cloud/securitycenter/v1beta1/or" + "ganization_settings.proto\022#google.cloud." - + "securitycenter.v1beta1\032\034google/api/annot" - + "ations.proto\"\250\003\n\024OrganizationSettings\022\014\n" - + "\004name\030\001 \001(\t\022\036\n\026enable_asset_discovery\030\002 " - + "\001(\010\022n\n\026asset_discovery_config\030\003 \001(\0132N.go" - + "ogle.cloud.securitycenter.v1beta1.Organi" - + "zationSettings.AssetDiscoveryConfig\032\361\001\n\024" - + "AssetDiscoveryConfig\022\023\n\013project_ids\030\001 \003(" - + "\t\022t\n\016inclusion_mode\030\002 \001(\0162\\.google.cloud" - + ".securitycenter.v1beta1.OrganizationSett" - + "ings.AssetDiscoveryConfig.InclusionMode\"" - + "N\n\rInclusionMode\022\036\n\032INCLUSION_MODE_UNSPE" - + "CIFIED\020\000\022\020\n\014INCLUDE_ONLY\020\001\022\013\n\007EXCLUDE\020\002B" - + "~\n\'com.google.cloud.securitycenter.v1bet" - + "a1P\001ZQgoogle.golang.org/genproto/googlea" - + "pis/cloud/securitycenter/v1beta1;securit" - + "ycenterb\006proto3" + + "securitycenter.v1beta1\032\031google/api/resou" + + "rce.proto\032\034google/api/annotations.proto\"" + + "\224\004\n\024OrganizationSettings\022\014\n\004name\030\001 \001(\t\022\036" + + "\n\026enable_asset_discovery\030\002 \001(\010\022n\n\026asset_" + + "discovery_config\030\003 \001(\0132N.google.cloud.se" + + "curitycenter.v1beta1.OrganizationSetting" + + "s.AssetDiscoveryConfig\032\361\001\n\024AssetDiscover" + + "yConfig\022\023\n\013project_ids\030\001 \003(\t\022t\n\016inclusio" + + "n_mode\030\002 \001(\0162\\.google.cloud.securitycent" + + "er.v1beta1.OrganizationSettings.AssetDis" + + "coveryConfig.InclusionMode\"N\n\rInclusionM" + + "ode\022\036\n\032INCLUSION_MODE_UNSPECIFIED\020\000\022\020\n\014I" + + "NCLUDE_ONLY\020\001\022\013\n\007EXCLUDE\020\002:j\352Ag\n2securit" + + "ycenter.googleapis.com/OrganizationSetti" + + "ngs\0221organizations/{organization}/organi" + + "zationSettingsB~\n\'com.google.cloud.secur" + + "itycenter.v1beta1P\001ZQgoogle.golang.org/g" + + "enproto/googleapis/cloud/securitycenter/" + + "v1beta1;securitycenterb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable = @@ -95,6 +91,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "ProjectIds", "InclusionMode", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java index da0c6c421..14d02eb8c 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java @@ -41,6 +41,12 @@ private RunAssetDiscoveryRequest() { parent_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunAssetDiscoveryRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private RunAssetDiscoveryRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -112,11 +117,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Name of the organization to run asset discovery for. Its format is
+   * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -133,11 +142,15 @@ public java.lang.String getParent() { * * *
-   * Name of the organization to run asset discovery for. Its format is
+   * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -479,11 +492,15 @@ public Builder mergeFrom( * * *
-     * Name of the organization to run asset discovery for. Its format is
+     * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -500,11 +517,15 @@ public java.lang.String getParent() { * * *
-     * Name of the organization to run asset discovery for. Its format is
+     * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -521,11 +542,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Name of the organization to run asset discovery for. Its format is
+     * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -540,11 +566,15 @@ public Builder setParent(java.lang.String value) { * * *
-     * Name of the organization to run asset discovery for. Its format is
+     * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -556,11 +586,16 @@ public Builder clearParent() { * * *
-     * Name of the organization to run asset discovery for. Its format is
+     * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java index d44bf1558..8f46cf315 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java @@ -27,22 +27,30 @@ public interface RunAssetDiscoveryRequestOrBuilder * * *
-   * Name of the organization to run asset discovery for. Its format is
+   * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** * * *
-   * Name of the organization to run asset discovery for. Its format is
+   * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java new file mode 100644 index 000000000..af792ea14 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java @@ -0,0 +1,1065 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/securitycenter/v1beta1/run_asset_discovery_response.proto + +package com.google.cloud.securitycenter.v1beta1; + +/** + * + * + *
+ * Response of asset discovery run
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse} + */ +public final class RunAssetDiscoveryResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) + RunAssetDiscoveryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunAssetDiscoveryResponse.newBuilder() to construct. + private RunAssetDiscoveryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunAssetDiscoveryResponse() { + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunAssetDiscoveryResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RunAssetDiscoveryResponse( + 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(); + + state_ = rawValue; + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.class, + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.Builder.class); + } + + /** + * + * + *
+   * The state of an asset discovery run.
+   * 
+ * + * Protobuf enum {@code google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Asset discovery run state was unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Asset discovery run completed successfully.
+     * 
+ * + * COMPLETED = 1; + */ + COMPLETED(1), + /** + * + * + *
+     * Asset discovery run was cancelled with tasks still pending, as another
+     * run for the same organization was started with a higher priority.
+     * 
+ * + * SUPERSEDED = 2; + */ + SUPERSEDED(2), + /** + * + * + *
+     * Asset discovery run was killed and terminated.
+     * 
+ * + * TERMINATED = 3; + */ + TERMINATED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Asset discovery run state was unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Asset discovery run completed successfully.
+     * 
+ * + * COMPLETED = 1; + */ + public static final int COMPLETED_VALUE = 1; + /** + * + * + *
+     * Asset discovery run was cancelled with tasks still pending, as another
+     * run for the same organization was started with a higher priority.
+     * 
+ * + * SUPERSEDED = 2; + */ + public static final int SUPERSEDED_VALUE = 2; + /** + * + * + *
+     * Asset discovery run was killed and terminated.
+     * 
+ * + * TERMINATED = 3; + */ + public static final int TERMINATED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return COMPLETED; + case 2: + return SUPERSEDED; + case 3: + return TERMINATED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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.securitycenter.v1beta1.RunAssetDiscoveryResponse.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State) + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_; + /** + * + * + *
+   * The state of an asset discovery run.
+   * 
+ * + * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * + * @return The enum numeric value on the wire for state. + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * The state of an asset discovery run.
+   * 
+ * + * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * + * @return The state. + */ + public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State result = + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED + : result; + } + + public static final int DURATION_FIELD_NUMBER = 2; + private com.google.protobuf.Duration duration_; + /** + * + * + *
+   * The duration between asset discovery run start and end
+   * 
+ * + * .google.protobuf.Duration duration = 2; + * + * @return Whether the duration field is set. + */ + public boolean hasDuration() { + return duration_ != null; + } + /** + * + * + *
+   * The duration between asset discovery run start and end
+   * 
+ * + * .google.protobuf.Duration duration = 2; + * + * @return The duration. + */ + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + * + * + *
+   * The duration between asset discovery run start and end
+   * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return getDuration(); + } + + 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 (state_ + != com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + if (duration_ != null) { + output.writeMessage(2, getDuration()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); + } + size += unknownFields.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.securitycenter.v1beta1.RunAssetDiscoveryResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse other = + (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) obj; + + if (state_ != other.state_) return false; + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration().equals(other.getDuration())) return false; + } + if (!unknownFields.equals(other.unknownFields)) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse 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.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse 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.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse 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.securitycenter.v1beta1.RunAssetDiscoveryResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse + 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.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse 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.securitycenter.v1beta1.RunAssetDiscoveryResponse 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; + } + /** + * + * + *
+   * Response of asset discovery run
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.class, + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + 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(); + state_ = 0; + + if (durationBuilder_ == null) { + duration_ = null; + } else { + duration_ = null; + durationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse build() { + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse buildPartial() { + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse result = + new com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse(this); + result.state_ = state_; + if (durationBuilder_ == null) { + result.duration_ = duration_; + } else { + result.duration_ = durationBuilder_.build(); + } + 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.securitycenter.v1beta1.RunAssetDiscoveryResponse) { + return mergeFrom((com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse other) { + if (other + == com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * The state of an asset discovery run.
+     * 
+ * + * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * + * @return The enum numeric value on the wire for state. + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * The state of an asset discovery run.
+     * 
+ * + * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The state of an asset discovery run.
+     * 
+ * + * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * + * @return The state. + */ + public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State result = + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The state of an asset discovery run.
+     * 
+ * + * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The state of an asset discovery run.
+     * 
+ * + * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; + /** + * + * + *
+     * The duration between asset discovery run start and end
+     * 
+ * + * .google.protobuf.Duration duration = 2; + * + * @return Whether the duration field is set. + */ + public boolean hasDuration() { + return durationBuilder_ != null || duration_ != null; + } + /** + * + * + *
+     * The duration between asset discovery run start and end
+     * 
+ * + * .google.protobuf.Duration duration = 2; + * + * @return The duration. + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The duration between asset discovery run start and end
+     * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The duration between asset discovery run start and end
+     * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The duration between asset discovery run start and end
+     * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (duration_ != null) { + duration_ = + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + } else { + duration_ = value; + } + onChanged(); + } else { + durationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The duration between asset discovery run start and end
+     * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + duration_ = null; + onChanged(); + } else { + duration_ = null; + durationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The duration between asset discovery run start and end
+     * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The duration between asset discovery run start and end
+     * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + * + * + *
+     * The duration between asset discovery run start and end
+     * 
+ * + * .google.protobuf.Duration duration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); + duration_ = null; + } + return durationBuilder_; + } + + @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.securitycenter.v1beta1.RunAssetDiscoveryResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) + private static final com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse(); + } + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAssetDiscoveryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAssetDiscoveryResponse(input, extensionRegistry); + } + }; + + 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.securitycenter.v1beta1.RunAssetDiscoveryResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java new file mode 100644 index 000000000..aa3704ce5 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/securitycenter/v1beta1/run_asset_discovery_response.proto + +package com.google.cloud.securitycenter.v1beta1; + +public interface RunAssetDiscoveryResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The state of an asset discovery run.
+   * 
+ * + * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * The state of an asset discovery run.
+   * 
+ * + * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * + * @return The state. + */ + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State getState(); + + /** + * + * + *
+   * The duration between asset discovery run start and end
+   * 
+ * + * .google.protobuf.Duration duration = 2; + * + * @return Whether the duration field is set. + */ + boolean hasDuration(); + /** + * + * + *
+   * The duration between asset discovery run start and end
+   * 
+ * + * .google.protobuf.Duration duration = 2; + * + * @return The duration. + */ + com.google.protobuf.Duration getDuration(); + /** + * + * + *
+   * The duration between asset discovery run start and end
+   * 
+ * + * .google.protobuf.Duration duration = 2; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); +} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java new file mode 100644 index 000000000..f13755a96 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java @@ -0,0 +1,78 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/securitycenter/v1beta1/run_asset_discovery_response.proto + +package com.google.cloud.securitycenter.v1beta1; + +public final class RunAssetDiscoveryResponseOuterClass { + private RunAssetDiscoveryResponseOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nFgoogle/cloud/securitycenter/v1beta1/ru" + + "n_asset_discovery_response.proto\022#google" + + ".cloud.securitycenter.v1beta1\032\036google/pr" + + "otobuf/duration.proto\032\034google/api/annota" + + "tions.proto\"\354\001\n\031RunAssetDiscoveryRespons" + + "e\022S\n\005state\030\001 \001(\0162D.google.cloud.security" + + "center.v1beta1.RunAssetDiscoveryResponse" + + ".State\022+\n\010duration\030\002 \001(\0132\031.google.protob" + + "uf.Duration\"M\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\r\n\tCOMPLETED\020\001\022\016\n\nSUPERSEDED\020\002\022\016\n\nTE" + + "RMINATED\020\003B~\n\'com.google.cloud.securityc" + + "enter.v1beta1P\001ZQgoogle.golang.org/genpr" + + "oto/googleapis/cloud/securitycenter/v1be" + + "ta1;securitycenterb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor, + new java.lang.String[] { + "State", "Duration", + }); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java index 247201bca..464f4b248 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java @@ -44,6 +44,12 @@ private SecurityMarks() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SecurityMarks(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -77,10 +83,10 @@ private SecurityMarks( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { marks_ = com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry marks__ = input.readMessage( @@ -133,7 +139,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder.class); } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -143,11 +148,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -167,11 +174,13 @@ public java.lang.String getName() { * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -216,9 +225,10 @@ public int getMarksCount() { *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -241,9 +251,10 @@ public java.util.Map getMarks() { *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -258,9 +269,10 @@ public java.util.Map getMarksMap() { *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -279,9 +291,10 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -574,11 +587,9 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks buildPartial() { com.google.cloud.securitycenter.v1beta1.SecurityMarks result = new com.google.cloud.securitycenter.v1beta1.SecurityMarks(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; result.marks_ = internalGetMarks(); result.marks_.makeImmutable(); - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -674,11 +685,13 @@ public Builder mergeFrom( * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -698,11 +711,13 @@ public java.lang.String getName() { * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -722,11 +737,14 @@ public com.google.protobuf.ByteString getNameBytes() { * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -744,11 +762,13 @@ public Builder setName(java.lang.String value) { * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -763,11 +783,14 @@ public Builder clearName() { * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -811,9 +834,10 @@ public int getMarksCount() { *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
-     *   - Keys and values are treated as case insensitive
-     *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-     *   - Values have leading and trailing whitespace trimmed, remaining
+     *   * Keys and values are treated as case insensitive
+     *   * Keys must be between 1 - 256 characters (inclusive)
+     *   * Keys must be letters, numbers, underscores, or dashes
+     *   * Values have leading and trailing whitespace trimmed, remaining
      *     characters must be between 1 - 4096 characters (inclusive)
      * 
* @@ -836,9 +860,10 @@ public java.util.Map getMarks() { *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
-     *   - Keys and values are treated as case insensitive
-     *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-     *   - Values have leading and trailing whitespace trimmed, remaining
+     *   * Keys and values are treated as case insensitive
+     *   * Keys must be between 1 - 256 characters (inclusive)
+     *   * Keys must be letters, numbers, underscores, or dashes
+     *   * Values have leading and trailing whitespace trimmed, remaining
      *     characters must be between 1 - 4096 characters (inclusive)
      * 
* @@ -853,9 +878,10 @@ public java.util.Map getMarksMap() { *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
-     *   - Keys and values are treated as case insensitive
-     *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-     *   - Values have leading and trailing whitespace trimmed, remaining
+     *   * Keys and values are treated as case insensitive
+     *   * Keys must be between 1 - 256 characters (inclusive)
+     *   * Keys must be letters, numbers, underscores, or dashes
+     *   * Values have leading and trailing whitespace trimmed, remaining
      *     characters must be between 1 - 4096 characters (inclusive)
      * 
* @@ -874,9 +900,10 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
-     *   - Keys and values are treated as case insensitive
-     *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-     *   - Values have leading and trailing whitespace trimmed, remaining
+     *   * Keys and values are treated as case insensitive
+     *   * Keys must be between 1 - 256 characters (inclusive)
+     *   * Keys must be letters, numbers, underscores, or dashes
+     *   * Values have leading and trailing whitespace trimmed, remaining
      *     characters must be between 1 - 4096 characters (inclusive)
      * 
* @@ -903,9 +930,10 @@ public Builder clearMarks() { *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
-     *   - Keys and values are treated as case insensitive
-     *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-     *   - Values have leading and trailing whitespace trimmed, remaining
+     *   * Keys and values are treated as case insensitive
+     *   * Keys must be between 1 - 256 characters (inclusive)
+     *   * Keys must be letters, numbers, underscores, or dashes
+     *   * Values have leading and trailing whitespace trimmed, remaining
      *     characters must be between 1 - 4096 characters (inclusive)
      * 
* @@ -929,9 +957,10 @@ public java.util.Map getMutableMarks() { *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
-     *   - Keys and values are treated as case insensitive
-     *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-     *   - Values have leading and trailing whitespace trimmed, remaining
+     *   * Keys and values are treated as case insensitive
+     *   * Keys must be between 1 - 256 characters (inclusive)
+     *   * Keys must be letters, numbers, underscores, or dashes
+     *   * Values have leading and trailing whitespace trimmed, remaining
      *     characters must be between 1 - 4096 characters (inclusive)
      * 
* @@ -953,9 +982,10 @@ public Builder putMarks(java.lang.String key, java.lang.String value) { *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
-     *   - Keys and values are treated as case insensitive
-     *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-     *   - Values have leading and trailing whitespace trimmed, remaining
+     *   * Keys and values are treated as case insensitive
+     *   * Keys must be between 1 - 256 characters (inclusive)
+     *   * Keys must be letters, numbers, underscores, or dashes
+     *   * Values have leading and trailing whitespace trimmed, remaining
      *     characters must be between 1 - 4096 characters (inclusive)
      * 
* diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java index e5a5bd5af..b513c558e 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java @@ -30,11 +30,13 @@ public interface SecurityMarksOrBuilder * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -44,11 +46,13 @@ public interface SecurityMarksOrBuilder * The relative resource name of the SecurityMarks. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Examples: - * "organizations/123/assets/456/securityMarks" - * "organizations/123/sources/456/findings/789/securityMarks". + * "organizations/{organization_id}/assets/{asset_id}/securityMarks" + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -58,9 +62,10 @@ public interface SecurityMarksOrBuilder *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -73,9 +78,10 @@ public interface SecurityMarksOrBuilder *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -91,9 +97,10 @@ public interface SecurityMarksOrBuilder *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -106,9 +113,10 @@ public interface SecurityMarksOrBuilder *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* @@ -121,9 +129,10 @@ public interface SecurityMarksOrBuilder *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
-   *   - Keys and values are treated as case insensitive
-   *   - Keys must be alphanumeric and between 1 - 256 characters (inclusive)
-   *   - Values have leading and trailing whitespace trimmed, remaining
+   *   * Keys and values are treated as case insensitive
+   *   * Keys must be between 1 - 256 characters (inclusive)
+   *   * Keys must be letters, numbers, underscores, or dashes
+   *   * Values have leading and trailing whitespace trimmed, remaining
    *     characters must be between 1 - 4096 characters (inclusive)
    * 
* diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java index 9813cb208..72c98f3a3 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java @@ -46,30 +46,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n8google/cloud/securitycenter/v1beta1/se" + "curity_marks.proto\022#google.cloud.securit" - + "ycenter.v1beta1\032\034google/api/annotations." - + "proto\"\231\001\n\rSecurityMarks\022\014\n\004name\030\001 \001(\t\022L\n" - + "\005marks\030\002 \003(\0132=.google.cloud.securitycent" - + "er.v1beta1.SecurityMarks.MarksEntry\032,\n\nM" - + "arksEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001B~\n\'com.google.cloud.securitycenter.v1b" - + "eta1P\001ZQgoogle.golang.org/genproto/googl" - + "eapis/cloud/securitycenter/v1beta1;secur" - + "itycenterb\006proto3" + + "ycenter.v1beta1\032\031google/api/resource.pro" + + "to\032\034google/api/annotations.proto\"\330\002\n\rSec" + + "urityMarks\022\014\n\004name\030\001 \001(\t\022L\n\005marks\030\002 \003(\0132" + + "=.google.cloud.securitycenter.v1beta1.Se" + + "curityMarks.MarksEntry\032,\n\nMarksEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\274\001\352A\270\001\n+sec" + + "uritycenter.googleapis.com/SecurityMarks" + + "\0229organizations/{organization}/assets/{a" + + "sset}/securityMarks\022Norganizations/{orga" + + "nization}/sources/{source}/findings/{fin" + + "ding}/securityMarksB~\n\'com.google.cloud." + + "securitycenter.v1beta1P\001ZQgoogle.golang." + + "org/genproto/googleapis/cloud/securityce" + + "nter/v1beta1;securitycenterb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable = @@ -88,6 +86,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java index 6650ff9e8..28ccb94f5 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java @@ -131,225 +131,249 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n@google/cloud/securitycenter/v1beta1/se" + "curitycenter_service.proto\022#google.cloud" + ".securitycenter.v1beta1\032\034google/api/anno" - + "tations.proto\032/google/cloud/securitycent" - + "er/v1beta1/asset.proto\0321google/cloud/sec" - + "uritycenter/v1beta1/finding.proto\032?googl" - + "e/cloud/securitycenter/v1beta1/organizat" - + "ion_settings.proto\0328google/cloud/securit" - + "ycenter/v1beta1/security_marks.proto\0320go" - + "ogle/cloud/securitycenter/v1beta1/source" - + ".proto\032\036google/iam/v1/iam_policy.proto\032\032" - + "google/iam/v1/policy.proto\032#google/longr" - + "unning/operations.proto\032\036google/protobuf" - + "/duration.proto\032\033google/protobuf/empty.p" - + "roto\032 google/protobuf/field_mask.proto\032\034" - + "google/protobuf/struct.proto\032\037google/pro" - + "tobuf/timestamp.proto\"y\n\024CreateFindingRe" - + "quest\022\016\n\006parent\030\001 \001(\t\022\022\n\nfinding_id\030\002 \001(" - + "\t\022=\n\007finding\030\003 \001(\0132,.google.cloud.securi" - + "tycenter.v1beta1.Finding\"b\n\023CreateSource" - + "Request\022\016\n\006parent\030\001 \001(\t\022;\n\006source\030\002 \001(\0132" - + "+.google.cloud.securitycenter.v1beta1.So" - + "urce\".\n\036GetOrganizationSettingsRequest\022\014" - + "\n\004name\030\001 \001(\t\" \n\020GetSourceRequest\022\014\n\004name" - + "\030\001 \001(\t\"\321\001\n\022GroupAssetsRequest\022\016\n\006parent\030" - + "\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\020\n\010group_by\030\003 \001(\t\022" - + "3\n\020compare_duration\030\004 \001(\0132\031.google.proto" - + "buf.Duration\022-\n\tread_time\030\005 \001(\0132\032.google" - + ".protobuf.Timestamp\022\022\n\npage_token\030\007 \001(\t\022" - + "\021\n\tpage_size\030\010 \001(\005\"\251\001\n\023GroupAssetsRespon" - + "se\022J\n\020group_by_results\030\001 \003(\01320.google.cl" - + "oud.securitycenter.v1beta1.GroupResult\022-" - + "\n\tread_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stamp\022\027\n\017next_page_token\030\003 \001(\t\"\236\001\n\024Group" - + "FindingsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filte" - + "r\030\002 \001(\t\022\020\n\010group_by\030\003 \001(\t\022-\n\tread_time\030\004" - + " \001(\0132\032.google.protobuf.Timestamp\022\022\n\npage" - + "_token\030\005 \001(\t\022\021\n\tpage_size\030\006 \001(\005\"\253\001\n\025Grou" - + "pFindingsResponse\022J\n\020group_by_results\030\001 " + + "tations.proto\032\027google/api/client.proto\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\032/google/cloud/securit" + + "ycenter/v1beta1/asset.proto\0321google/clou" + + "d/securitycenter/v1beta1/finding.proto\032?" + + "google/cloud/securitycenter/v1beta1/orga" + + "nization_settings.proto\0328google/cloud/se" + + "curitycenter/v1beta1/security_marks.prot" + + "o\0320google/cloud/securitycenter/v1beta1/s" + + "ource.proto\032\036google/iam/v1/iam_policy.pr" + + "oto\032\032google/iam/v1/policy.proto\032#google/" + + "longrunning/operations.proto\032\036google/pro" + + "tobuf/duration.proto\032\033google/protobuf/em" + + "pty.proto\032 google/protobuf/field_mask.pr" + + "oto\032\034google/protobuf/struct.proto\032\037googl" + + "e/protobuf/timestamp.proto\"\261\001\n\024CreateFin" + + "dingRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$sec" + + "uritycenter.googleapis.com/Source\022\027\n\nfin" + + "ding_id\030\002 \001(\tB\003\340A\002\022B\n\007finding\030\003 \001(\0132,.go" + + "ogle.cloud.securitycenter.v1beta1.Findin" + + "gB\003\340A\002\"\241\001\n\023CreateSourceRequest\022H\n\006parent" + + "\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcemanager.goo" + + "gleapis.com/Organization\022@\n\006source\030\002 \001(\013" + + "2+.google.cloud.securitycenter.v1beta1.S" + + "ourceB\003\340A\002\"j\n\036GetOrganizationSettingsReq" + + "uest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2securitycent" + + "er.googleapis.com/OrganizationSettings\"N" + + "\n\020GetSourceRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&" + + "\n$securitycenter.googleapis.com/Source\"\220" + + "\002\n\022GroupAssetsRequest\022H\n\006parent\030\001 \001(\tB8\340" + + "A\002\372A2\n0cloudresourcemanager.googleapis.c" + + "om/Organization\022\016\n\006filter\030\002 \001(\t\022\025\n\010group" + + "_by\030\003 \001(\tB\003\340A\002\0223\n\020compare_duration\030\004 \001(\013" + + "2\031.google.protobuf.Duration\022-\n\tread_time" + + "\030\005 \001(\0132\032.google.protobuf.Timestamp\022\022\n\npa" + + "ge_token\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\251\001\n\023Gr" + + "oupAssetsResponse\022J\n\020group_by_results\030\001 " + "\003(\01320.google.cloud.securitycenter.v1beta" + "1.GroupResult\022-\n\tread_time\030\002 \001(\0132\032.googl" + "e.protobuf.Timestamp\022\027\n\017next_page_token\030" - + "\003 \001(\t\"\275\001\n\013GroupResult\022T\n\nproperties\030\001 \003(" - + "\0132@.google.cloud.securitycenter.v1beta1." - + "GroupResult.PropertiesEntry\022\r\n\005count\030\002 \001" - + "(\003\032I\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005va" - + "lue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"K\n" - + "\022ListSourcesRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\np" - + "age_token\030\002 \001(\t\022\021\n\tpage_size\030\007 \001(\005\"l\n\023Li" - + "stSourcesResponse\022<\n\007sources\030\001 \003(\0132+.goo" - + "gle.cloud.securitycenter.v1beta1.Source\022" - + "\027\n\017next_page_token\030\002 \001(\t\"\200\002\n\021ListAssetsR" - + "equest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\020" - + "\n\010order_by\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\0223\n\020compare_durat" - + "ion\030\005 \001(\0132\031.google.protobuf.Duration\022.\n\n" - + "field_mask\030\007 \001(\0132\032.google.protobuf.Field" - + "Mask\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage_size\030\t " - + "\001(\005\"\326\003\n\022ListAssetsResponse\022e\n\023list_asset" - + "s_results\030\001 \003(\0132H.google.cloud.securityc" - + "enter.v1beta1.ListAssetsResponse.ListAss" - + "etsResult\022-\n\tread_time\030\002 \001(\0132\032.google.pr" - + "otobuf.Timestamp\022\027\n\017next_page_token\030\003 \001(" - + "\t\022\022\n\ntotal_size\030\004 \001(\005\032\374\001\n\020ListAssetsResu" - + "lt\0229\n\005asset\030\001 \001(\0132*.google.cloud.securit" - + "ycenter.v1beta1.Asset\022]\n\005state\030\002 \001(\0162N.g" - + "oogle.cloud.securitycenter.v1beta1.ListA" - + "ssetsResponse.ListAssetsResult.State\"N\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006UNUSED\020\001" - + "\022\t\n\005ADDED\020\002\022\013\n\007REMOVED\020\003\022\n\n\006ACTIVE\020\004\"\315\001\n" - + "\023ListFindingsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006" - + "filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread_t" - + "ime\030\004 \001(\0132\032.google.protobuf.Timestamp\022.\n" - + "\nfield_mask\030\005 \001(\0132\032.google.protobuf.Fiel" - + "dMask\022\022\n\npage_token\030\006 \001(\t\022\021\n\tpage_size\030\007" - + " \001(\005\"\262\001\n\024ListFindingsResponse\022>\n\010finding" - + "s\030\001 \003(\0132,.google.cloud.securitycenter.v1" - + "beta1.Finding\022-\n\tread_time\030\002 \001(\0132\032.googl" - + "e.protobuf.Timestamp\022\027\n\017next_page_token\030" - + "\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\231\001\n\026SetFinding" - + "StateRequest\022\014\n\004name\030\001 \001(\t\022A\n\005state\030\002 \001(" - + "\01622.google.cloud.securitycenter.v1beta1." - + "Finding.State\022.\n\nstart_time\030\003 \001(\0132\032.goog" - + "le.protobuf.Timestamp\"*\n\030RunAssetDiscove" - + "ryRequest\022\016\n\006parent\030\001 \001(\t\"\206\001\n\024UpdateFind" - + "ingRequest\022=\n\007finding\030\001 \001(\0132,.google.clo" - + "ud.securitycenter.v1beta1.Finding\022/\n\013upd" + + "\003 \001(\t\"\321\001\n\024GroupFindingsRequest\022<\n\006parent" + + "\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.googleapi" + + "s.com/Source\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_by" + + "\030\003 \001(\tB\003\340A\002\022-\n\tread_time\030\004 \001(\0132\032.google." + + "protobuf.Timestamp\022\022\n\npage_token\030\005 \001(\t\022\021" + + "\n\tpage_size\030\006 \001(\005\"\253\001\n\025GroupFindingsRespo" + + "nse\022J\n\020group_by_results\030\001 \003(\01320.google.c" + + "loud.securitycenter.v1beta1.GroupResult\022" + + "-\n\tread_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\022\027\n\017next_page_token\030\003 \001(\t\"\275\001\n\013Grou" + + "pResult\022T\n\nproperties\030\001 \003(\0132@.google.clo" + + "ud.securitycenter.v1beta1.GroupResult.Pr" + + "opertiesEntry\022\r\n\005count\030\002 \001(\003\032I\n\017Properti" + + "esEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.go" + + "ogle.protobuf.Value:\0028\001\"\205\001\n\022ListSourcesR" + + "equest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0cloudres" + + "ourcemanager.googleapis.com/Organization" + + "\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\007 \001(\005\"" + + "l\n\023ListSourcesResponse\022<\n\007sources\030\001 \003(\0132" + + "+.google.cloud.securitycenter.v1beta1.So" + + "urce\022\027\n\017next_page_token\030\002 \001(\t\"\277\002\n\021ListAs" + + "setsRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0clo" + + "udresourcemanager.googleapis.com/Organiz" + + "ation\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022" + + "-\n\tread_time\030\004 \001(\0132\032.google.protobuf.Tim" + + "estamp\0223\n\020compare_duration\030\005 \001(\0132\031.googl" + + "e.protobuf.Duration\0223\n\nfield_mask\030\007 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\001\022\022\n\npage" + + "_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\326\003\n\022List" + + "AssetsResponse\022e\n\023list_assets_results\030\001 " + + "\003(\0132H.google.cloud.securitycenter.v1beta" + + "1.ListAssetsResponse.ListAssetsResult\022-\n" + + "\tread_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_s" + + "ize\030\004 \001(\005\032\374\001\n\020ListAssetsResult\0229\n\005asset\030" + + "\001 \001(\0132*.google.cloud.securitycenter.v1be" + + "ta1.Asset\022]\n\005state\030\002 \001(\0162N.google.cloud." + + "securitycenter.v1beta1.ListAssetsRespons" + + "e.ListAssetsResult.State\"N\n\005State\022\025\n\021STA" + + "TE_UNSPECIFIED\020\000\022\n\n\006UNUSED\020\001\022\t\n\005ADDED\020\002\022" + + "\013\n\007REMOVED\020\003\022\n\n\006ACTIVE\020\004\"\200\002\n\023ListFinding" + + "sRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securi" + + "tycenter.googleapis.com/Source\022\016\n\006filter" + + "\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread_time\030\004 " + + "\001(\0132\032.google.protobuf.Timestamp\0223\n\nfield" + + "_mask\030\005 \001(\0132\032.google.protobuf.FieldMaskB" + + "\003\340A\001\022\022\n\npage_token\030\006 \001(\t\022\021\n\tpage_size\030\007 " + + "\001(\005\"\262\001\n\024ListFindingsResponse\022>\n\010findings" + + "\030\001 \003(\0132,.google.cloud.securitycenter.v1b" + + "eta1.Finding\022-\n\tread_time\030\002 \001(\0132\032.google" + + ".protobuf.Timestamp\022\027\n\017next_page_token\030\003" + + " \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\322\001\n\026SetFindingS" + + "tateRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%secur" + + "itycenter.googleapis.com/Finding\022F\n\005stat" + + "e\030\002 \001(\01622.google.cloud.securitycenter.v1" + + "beta1.Finding.StateB\003\340A\002\0223\n\nstart_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\"d\n" + + "\030RunAssetDiscoveryRequest\022H\n\006parent\030\001 \001(" + + "\tB8\340A\002\372A2\n0cloudresourcemanager.googleap" + + "is.com/Organization\"\213\001\n\024UpdateFindingReq" + + "uest\022B\n\007finding\030\001 \001(\0132,.google.cloud.sec" + + "uritycenter.v1beta1.FindingB\003\340A\002\022/\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "k\"\263\001\n!UpdateOrganizationSettingsRequest\022" + + "]\n\025organization_settings\030\001 \001(\01329.google." + + "cloud.securitycenter.v1beta1.Organizatio" + + "nSettingsB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMask\"\210\001\n\023UpdateSource" + + "Request\022@\n\006source\030\001 \001(\0132+.google.cloud.s" + + "ecuritycenter.v1beta1.SourceB\003\340A\002\022/\n\013upd" + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" - + "sk\"\256\001\n!UpdateOrganizationSettingsRequest" - + "\022X\n\025organization_settings\030\001 \001(\01329.google" - + ".cloud.securitycenter.v1beta1.Organizati" - + "onSettings\022/\n\013update_mask\030\002 \001(\0132\032.google" - + ".protobuf.FieldMask\"\203\001\n\023UpdateSourceRequ" - + "est\022;\n\006source\030\001 \001(\0132+.google.cloud.secur" - + "itycenter.v1beta1.Source\022/\n\013update_mask\030" - + "\002 \001(\0132\032.google.protobuf.FieldMask\"\311\001\n\032Up" - + "dateSecurityMarksRequest\022J\n\016security_mar" - + "ks\030\001 \001(\01322.google.cloud.securitycenter.v" - + "1beta1.SecurityMarks\022/\n\013update_mask\030\002 \001(" - + "\0132\032.google.protobuf.FieldMask\022.\n\nstart_t" - + "ime\030\003 \001(\0132\032.google.protobuf.Timestamp2\200\034" - + "\n\016SecurityCenter\022\260\001\n\014CreateSource\0228.goog" - + "le.cloud.securitycenter.v1beta1.CreateSo" - + "urceRequest\032+.google.cloud.securitycente" - + "r.v1beta1.Source\"9\202\323\344\223\0023\")/v1beta1/{pare" - + "nt=organizations/*}/sources:\006source\022\277\001\n\r" - + "CreateFinding\0229.google.cloud.securitycen" - + "ter.v1beta1.CreateFindingRequest\032,.googl" - + "e.cloud.securitycenter.v1beta1.Finding\"E" - + "\202\323\344\223\002?\"4/v1beta1/{parent=organizations/*" - + "/sources/*}/findings:\007finding\022\220\001\n\014GetIam" - + "Policy\022\".google.iam.v1.GetIamPolicyReque" - + "st\032\025.google.iam.v1.Policy\"E\202\323\344\223\002?\":/v1be" - + "ta1/{resource=organizations/*/sources/*}" - + ":getIamPolicy:\001*\022\327\001\n\027GetOrganizationSett" - + "ings\022C.google.cloud.securitycenter.v1bet" - + "a1.GetOrganizationSettingsRequest\0329.goog" - + "le.cloud.securitycenter.v1beta1.Organiza" - + "tionSettings\"<\202\323\344\223\0026\0224/v1beta1/{name=org" - + "anizations/*/organizationSettings}\022\242\001\n\tG" - + "etSource\0225.google.cloud.securitycenter.v" - + "1beta1.GetSourceRequest\032+.google.cloud.s" - + "ecuritycenter.v1beta1.Source\"1\202\323\344\223\002+\022)/v" - + "1beta1/{name=organizations/*/sources/*}\022" - + "\273\001\n\013GroupAssets\0227.google.cloud.securityc" - + "enter.v1beta1.GroupAssetsRequest\0328.googl" - + "e.cloud.securitycenter.v1beta1.GroupAsse" - + "tsResponse\"9\202\323\344\223\0023\"./v1beta1/{parent=org" - + "anizations/*}/assets:group:\001*\022\315\001\n\rGroupF" - + "indings\0229.google.cloud.securitycenter.v1" - + "beta1.GroupFindingsRequest\032:.google.clou" - + "d.securitycenter.v1beta1.GroupFindingsRe" - + "sponse\"E\202\323\344\223\002?\":/v1beta1/{parent=organiz" - + "ations/*/sources/*}/findings:group:\001*\022\257\001" - + "\n\nListAssets\0226.google.cloud.securitycent" - + "er.v1beta1.ListAssetsRequest\0327.google.cl" - + "oud.securitycenter.v1beta1.ListAssetsRes" - + "ponse\"0\202\323\344\223\002*\022(/v1beta1/{parent=organiza" - + "tions/*}/assets\022\301\001\n\014ListFindings\0228.googl" - + "e.cloud.securitycenter.v1beta1.ListFindi" - + "ngsRequest\0329.google.cloud.securitycenter" - + ".v1beta1.ListFindingsResponse\"<\202\323\344\223\0026\0224/" - + "v1beta1/{parent=organizations/*/sources/" - + "*}/findings\022\263\001\n\013ListSources\0227.google.clo" - + "ud.securitycenter.v1beta1.ListSourcesReq" - + "uest\0328.google.cloud.securitycenter.v1bet" - + "a1.ListSourcesResponse\"1\202\323\344\223\002+\022)/v1beta1" - + "/{parent=organizations/*}/sources\022\263\001\n\021Ru" - + "nAssetDiscovery\022=.google.cloud.securityc" - + "enter.v1beta1.RunAssetDiscoveryRequest\032\035" - + ".google.longrunning.Operation\"@\202\323\344\223\002:\"5/" - + "v1beta1/{parent=organizations/*}/assets:" - + "runDiscovery:\001*\022\306\001\n\017SetFindingState\022;.go" - + "ogle.cloud.securitycenter.v1beta1.SetFin" - + "dingStateRequest\032,.google.cloud.security" - + "center.v1beta1.Finding\"H\202\323\344\223\002B\"=/v1beta1" - + "/{name=organizations/*/sources/*/finding" - + "s/*}:setState:\001*\022\220\001\n\014SetIamPolicy\022\".goog" - + "le.iam.v1.SetIamPolicyRequest\032\025.google.i" - + "am.v1.Policy\"E\202\323\344\223\002?\":/v1beta1/{resource" - + "=organizations/*/sources/*}:setIamPolicy" - + ":\001*\022\266\001\n\022TestIamPermissions\022(.google.iam." - + "v1.TestIamPermissionsRequest\032).google.ia" - + "m.v1.TestIamPermissionsResponse\"K\202\323\344\223\002E\"" - + "@/v1beta1/{resource=organizations/*/sour" - + "ces/*}:testIamPermissions:\001*\022\307\001\n\rUpdateF" - + "inding\0229.google.cloud.securitycenter.v1b" - + "eta1.UpdateFindingRequest\032,.google.cloud" - + ".securitycenter.v1beta1.Finding\"M\202\323\344\223\002G2" - + " - * The relative resource name of the finding. See: + * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456/finding/789". + * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -158,13 +167,17 @@ public java.lang.String getName() { * * *
-   * The relative resource name of the finding. See:
+   * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
    * Example:
-   * "organizations/123/sources/456/finding/789".
+   * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -184,10 +197,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The desired State of the finding.
+   * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; @@ -196,10 +213,14 @@ public int getStateValue() { * * *
-   * The desired State of the finding.
+   * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The state. */ public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { @SuppressWarnings("deprecation") @@ -216,10 +237,13 @@ public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { * * *
-   * The time at which the updated state takes effect.
+   * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -228,10 +252,13 @@ public boolean hasStartTime() { * * *
-   * The time at which the updated state takes effect.
+   * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; @@ -240,10 +267,11 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
-   * The time at which the updated state takes effect.
+   * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return getStartTime(); @@ -621,13 +649,17 @@ public Builder mergeFrom( * * *
-     * The relative resource name of the finding. See:
+     * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * Example:
-     * "organizations/123/sources/456/finding/789".
+     * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -644,13 +676,17 @@ public java.lang.String getName() { * * *
-     * The relative resource name of the finding. See:
+     * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * Example:
-     * "organizations/123/sources/456/finding/789".
+     * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -667,13 +703,18 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The relative resource name of the finding. See:
+     * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * Example:
-     * "organizations/123/sources/456/finding/789".
+     * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -688,13 +729,17 @@ public Builder setName(java.lang.String value) { * * *
-     * The relative resource name of the finding. See:
+     * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * Example:
-     * "organizations/123/sources/456/finding/789".
+     * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -706,13 +751,18 @@ public Builder clearName() { * * *
-     * The relative resource name of the finding. See:
+     * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * Example:
-     * "organizations/123/sources/456/finding/789".
+     * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -730,10 +780,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The desired State of the finding.
+     * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; @@ -742,10 +796,15 @@ public int getStateValue() { * * *
-     * The desired State of the finding.
+     * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; @@ -756,10 +815,14 @@ public Builder setStateValue(int value) { * * *
-     * The desired State of the finding.
+     * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The state. */ public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { @SuppressWarnings("deprecation") @@ -773,10 +836,15 @@ public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { * * *
-     * The desired State of the finding.
+     * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The state to set. + * @return This builder for chaining. */ public Builder setState(com.google.cloud.securitycenter.v1beta1.Finding.State value) { if (value == null) { @@ -791,10 +859,14 @@ public Builder setState(com.google.cloud.securitycenter.v1beta1.Finding.State va * * *
-     * The desired State of the finding.
+     * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ public Builder clearState() { @@ -813,10 +885,13 @@ public Builder clearState() { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -825,10 +900,13 @@ public boolean hasStartTime() { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { @@ -841,10 +919,11 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -863,10 +942,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { @@ -882,10 +962,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -906,10 +987,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -926,10 +1008,11 @@ public Builder clearStartTime() { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { @@ -940,10 +1023,11 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { @@ -956,10 +1040,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-     * The time at which the updated state takes effect.
+     * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java index d03bbca7b..081674f13 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java @@ -27,26 +27,34 @@ public interface SetFindingStateRequestOrBuilder * * *
-   * The relative resource name of the finding. See:
+   * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
    * Example:
-   * "organizations/123/sources/456/finding/789".
+   * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ java.lang.String getName(); /** * * *
-   * The relative resource name of the finding. See:
+   * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
    * Example:
-   * "organizations/123/sources/456/finding/789".
+   * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -54,20 +62,28 @@ public interface SetFindingStateRequestOrBuilder * * *
-   * The desired State of the finding.
+   * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for state. */ int getStateValue(); /** * * *
-   * The desired State of the finding.
+   * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The state. */ com.google.cloud.securitycenter.v1beta1.Finding.State getState(); @@ -75,30 +91,37 @@ public interface SetFindingStateRequestOrBuilder * * *
-   * The time at which the updated state takes effect.
+   * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** * * *
-   * The time at which the updated state takes effect.
+   * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** * * *
-   * The time at which the updated state takes effect.
+   * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java index 27ef6332a..5ee7c2b81 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java @@ -45,6 +45,12 @@ private Source() { description_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Source(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -58,7 +64,6 @@ private Source( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -133,10 +138,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -156,10 +163,12 @@ public java.lang.String getName() { * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -182,13 +191,13 @@ public com.google.protobuf.ByteString getNameBytes() { * The source's display name. * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. - * The display name must start and end with a letter or digit, may contain - * letters, digits, spaces, hyphens, and underscores, and can be no longer - * than 32 characters. This is captured by the regular expression: - * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?. + * The display name must have a length between 1 and 64 characters + * (inclusive). * * * string display_name = 2; + * + * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; @@ -208,13 +217,13 @@ public java.lang.String getDisplayName() { * The source's display name. * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. - * The display name must start and end with a letter or digit, may contain - * letters, digits, spaces, hyphens, and underscores, and can be no longer - * than 32 characters. This is captured by the regular expression: - * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?. + * The display name must have a length between 1 and 64 characters + * (inclusive). * * * string display_name = 2; + * + * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; @@ -244,6 +253,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * * string description = 3; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -270,6 +281,8 @@ public java.lang.String getDescription() { * * * string description = 3; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -641,10 +654,12 @@ public Builder mergeFrom( * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -664,10 +679,12 @@ public java.lang.String getName() { * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -687,10 +704,13 @@ public com.google.protobuf.ByteString getNameBytes() { * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -708,10 +728,12 @@ public Builder setName(java.lang.String value) { * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -726,10 +748,13 @@ public Builder clearName() { * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -750,13 +775,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * The source's display name. * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. - * The display name must start and end with a letter or digit, may contain - * letters, digits, spaces, hyphens, and underscores, and can be no longer - * than 32 characters. This is captured by the regular expression: - * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?. + * The display name must have a length between 1 and 64 characters + * (inclusive). * * * string display_name = 2; + * + * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; @@ -776,13 +801,13 @@ public java.lang.String getDisplayName() { * The source's display name. * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. - * The display name must start and end with a letter or digit, may contain - * letters, digits, spaces, hyphens, and underscores, and can be no longer - * than 32 characters. This is captured by the regular expression: - * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?. + * The display name must have a length between 1 and 64 characters + * (inclusive). * * * string display_name = 2; + * + * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; @@ -802,13 +827,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * The source's display name. * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. - * The display name must start and end with a letter or digit, may contain - * letters, digits, spaces, hyphens, and underscores, and can be no longer - * than 32 characters. This is captured by the regular expression: - * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?. + * The display name must have a length between 1 and 64 characters + * (inclusive). * * * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. */ public Builder setDisplayName(java.lang.String value) { if (value == null) { @@ -826,13 +852,13 @@ public Builder setDisplayName(java.lang.String value) { * The source's display name. * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. - * The display name must start and end with a letter or digit, may contain - * letters, digits, spaces, hyphens, and underscores, and can be no longer - * than 32 characters. This is captured by the regular expression: - * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?. + * The display name must have a length between 1 and 64 characters + * (inclusive). * * * string display_name = 2; + * + * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -847,13 +873,14 @@ public Builder clearDisplayName() { * The source's display name. * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. - * The display name must start and end with a letter or digit, may contain - * letters, digits, spaces, hyphens, and underscores, and can be no longer - * than 32 characters. This is captured by the regular expression: - * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?. + * The display name must have a length between 1 and 64 characters + * (inclusive). * * * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -881,6 +908,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * * string description = 3; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -907,6 +936,8 @@ public java.lang.String getDescription() { * * * string description = 3; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -933,6 +964,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { @@ -957,6 +991,8 @@ public Builder setDescription(java.lang.String value) { * * * string description = 3; + * + * @return This builder for chaining. */ public Builder clearDescription() { @@ -978,6 +1014,9 @@ public Builder clearDescription() { * * * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java index 4e3c38a40..d5c9e62c1 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class SourceName implements ResourceName { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java index 54b58a1d9..4041585a9 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java @@ -30,10 +30,12 @@ public interface SourceOrBuilder * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -43,10 +45,12 @@ public interface SourceOrBuilder * The relative resource name of this source. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/123/sources/456" + * "organizations/{organization_id}/sources/{source_id}" * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -57,13 +61,13 @@ public interface SourceOrBuilder * The source's display name. * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. - * The display name must start and end with a letter or digit, may contain - * letters, digits, spaces, hyphens, and underscores, and can be no longer - * than 32 characters. This is captured by the regular expression: - * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?. + * The display name must have a length between 1 and 64 characters + * (inclusive). * * * string display_name = 2; + * + * @return The displayName. */ java.lang.String getDisplayName(); /** @@ -73,13 +77,13 @@ public interface SourceOrBuilder * The source's display name. * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. - * The display name must start and end with a letter or digit, may contain - * letters, digits, spaces, hyphens, and underscores, and can be no longer - * than 32 characters. This is captured by the regular expression: - * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?. + * The display name must have a length between 1 and 64 characters + * (inclusive). * * * string display_name = 2; + * + * @return The bytes for displayName. */ com.google.protobuf.ByteString getDisplayNameBytes(); @@ -97,6 +101,8 @@ public interface SourceOrBuilder * * * string description = 3; + * + * @return The description. */ java.lang.String getDescription(); /** @@ -113,6 +119,8 @@ public interface SourceOrBuilder * * * string description = 3; + * + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOuterClass.java index c6fda37d6..5c3f98841 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOuterClass.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOuterClass.java @@ -42,27 +42,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n0google/cloud/securitycenter/v1beta1/so" + "urce.proto\022#google.cloud.securitycenter." - + "v1beta1\032\034google/api/annotations.proto\"A\n" - + "\006Source\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 " - + "\001(\t\022\023\n\013description\030\003 \001(\tB~\n\'com.google.c" - + "loud.securitycenter.v1beta1P\001ZQgoogle.go" - + "lang.org/genproto/googleapis/cloud/secur" - + "itycenter/v1beta1;securitycenterb\006proto3" + + "v1beta1\032\031google/api/resource.proto\032\034goog" + + "le/api/annotations.proto\"\233\001\n\006Source\022\014\n\004n" + + "ame\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013descr" + + "iption\030\003 \001(\t:X\352AU\n$securitycenter.google" + + "apis.com/Source\022-organizations/{organiza" + + "tion}/sources/{source}B~\n\'com.google.clo" + + "ud.securitycenter.v1beta1P\001ZQgoogle.gola" + + "ng.org/genproto/googleapis/cloud/securit" + + "ycenter/v1beta1;securitycenterb\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_securitycenter_v1beta1_Source_fieldAccessorTable = @@ -71,6 +67,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Name", "DisplayName", "Description", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UntypedSecuritymarksName.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UntypedSecuritymarksName.java index 6d6559a20..7551c8c4c 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UntypedSecuritymarksName.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UntypedSecuritymarksName.java @@ -23,8 +23,13 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * AUTO-GENERATED DOCUMENTATION AND CLASS + * + * @deprecated This resource name class will be removed in the next major version. + */ @javax.annotation.Generated("by GAPIC protoc plugin") +@Deprecated public class UntypedSecuritymarksName extends SecuritymarksName { private final String rawValue; diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java index 0715cc668..eafd49fa9 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java @@ -39,6 +39,12 @@ private UpdateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder b private UpdateFindingRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateFindingRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private UpdateFindingRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -134,14 +139,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The finding resource to update or create if it does not already exist.
+   * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
    * In the case of creation, the finding id portion of the name must
    * alphanumeric and less than or equal to 32 characters and greater than 0
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the finding field is set. */ public boolean hasFinding() { return finding_ != null; @@ -150,14 +159,18 @@ public boolean hasFinding() { * * *
-   * The finding resource to update or create if it does not already exist.
+   * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
    * In the case of creation, the finding id portion of the name must
    * alphanumeric and less than or equal to 32 characters and greater than 0
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The finding. */ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { return finding_ == null @@ -168,14 +181,16 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { * * *
-   * The finding resource to update or create if it does not already exist.
+   * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
    * In the case of creation, the finding id portion of the name must
    * alphanumeric and less than or equal to 32 characters and greater than 0
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() { return getFinding(); @@ -192,6 +207,8 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -205,6 +222,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -594,14 +613,18 @@ public Builder mergeFrom( * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; @@ -610,14 +633,18 @@ public boolean hasFinding() { * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The finding. */ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { if (findingBuilder_ == null) { @@ -632,14 +659,16 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding(com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingBuilder_ == null) { @@ -658,14 +687,16 @@ public Builder setFinding(com.google.cloud.securitycenter.v1beta1.Finding value) * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding( com.google.cloud.securitycenter.v1beta1.Finding.Builder builderForValue) { @@ -682,14 +713,16 @@ public Builder setFinding( * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFinding(com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingBuilder_ == null) { @@ -712,14 +745,16 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1beta1.Finding valu * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -736,14 +771,16 @@ public Builder clearFinding() { * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingBuilder() { @@ -754,14 +791,16 @@ public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingBuilder * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { @@ -776,14 +815,16 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil * * *
-     * The finding resource to update or create if it does not already exist.
+     * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
      * In the case of creation, the finding id portion of the name must
      * alphanumeric and less than or equal to 32 characters and greater than 0
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.Finding, @@ -817,6 +858,8 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -830,6 +873,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java index 21754d210..d20de96cd 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java @@ -27,42 +27,52 @@ public interface UpdateFindingRequestOrBuilder * * *
-   * The finding resource to update or create if it does not already exist.
+   * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
    * In the case of creation, the finding id portion of the name must
    * alphanumeric and less than or equal to 32 characters and greater than 0
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the finding field is set. */ boolean hasFinding(); /** * * *
-   * The finding resource to update or create if it does not already exist.
+   * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
    * In the case of creation, the finding id portion of the name must
    * alphanumeric and less than or equal to 32 characters and greater than 0
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The finding. */ com.google.cloud.securitycenter.v1beta1.Finding getFinding(); /** * * *
-   * The finding resource to update or create if it does not already exist.
+   * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
    * In the case of creation, the finding id portion of the name must
    * alphanumeric and less than or equal to 32 characters and greater than 0
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder(); @@ -75,6 +85,8 @@ public interface UpdateFindingRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -86,6 +98,8 @@ public interface UpdateFindingRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java index fd5788185..ccd5f8d25 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java @@ -40,6 +40,12 @@ private UpdateOrganizationSettingsRequest( private UpdateOrganizationSettingsRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateOrganizationSettingsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -53,7 +59,6 @@ private UpdateOrganizationSettingsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -138,11 +143,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The organization settings resource to update.
+   * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the organizationSettings field is set. */ public boolean hasOrganizationSettings() { return organizationSettings_ != null; @@ -151,11 +159,14 @@ public boolean hasOrganizationSettings() { * * *
-   * The organization settings resource to update.
+   * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The organizationSettings. */ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings() { return organizationSettings_ == null @@ -166,10 +177,11 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizat * * *
-   * The organization settings resource to update.
+   * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder @@ -187,6 +199,8 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizat * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -199,6 +213,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -600,11 +616,14 @@ public Builder mergeFrom( * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the organizationSettings field is set. */ public boolean hasOrganizationSettings() { return organizationSettingsBuilder_ != null || organizationSettings_ != null; @@ -613,11 +632,14 @@ public boolean hasOrganizationSettings() { * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The organizationSettings. */ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings() { if (organizationSettingsBuilder_ == null) { @@ -632,10 +654,11 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizat * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setOrganizationSettings( @@ -656,10 +679,11 @@ public Builder setOrganizationSettings( * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setOrganizationSettings( @@ -677,10 +701,11 @@ public Builder setOrganizationSettings( * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeOrganizationSettings( @@ -706,10 +731,11 @@ public Builder mergeOrganizationSettings( * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearOrganizationSettings() { @@ -727,10 +753,11 @@ public Builder clearOrganizationSettings() { * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder @@ -743,10 +770,11 @@ public Builder clearOrganizationSettings() { * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder @@ -763,10 +791,11 @@ public Builder clearOrganizationSettings() { * * *
-     * The organization settings resource to update.
+     * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -800,6 +829,8 @@ public Builder clearOrganizationSettings() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -812,6 +843,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java index 9233c6095..b4e84f757 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java @@ -27,32 +27,39 @@ public interface UpdateOrganizationSettingsRequestOrBuilder * * *
-   * The organization settings resource to update.
+   * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the organizationSettings field is set. */ boolean hasOrganizationSettings(); /** * * *
-   * The organization settings resource to update.
+   * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The organizationSettings. */ com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings(); /** * * *
-   * The organization settings resource to update.
+   * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder @@ -66,6 +73,8 @@ public interface UpdateOrganizationSettingsRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -76,6 +85,8 @@ public interface UpdateOrganizationSettingsRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java index 75f462dcd..2b51f6afa 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java @@ -39,6 +39,12 @@ private UpdateSecurityMarksRequest(com.google.protobuf.GeneratedMessageV3.Builde private UpdateSecurityMarksRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSecurityMarksRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private UpdateSecurityMarksRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -150,10 +155,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The security marks resource to update.
+   * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarks_ != null; @@ -162,10 +171,14 @@ public boolean hasSecurityMarks() { * * *
-   * The security marks resource to update.
+   * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityMarks. */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { return securityMarks_ == null @@ -176,10 +189,12 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() * * *
-   * The security marks resource to update.
+   * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { @@ -196,6 +211,8 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -208,6 +225,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -235,6 +254,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -247,6 +268,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; @@ -669,10 +692,14 @@ public Builder mergeFrom( * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; @@ -681,10 +708,14 @@ public boolean hasSecurityMarks() { * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityMarks. */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -699,10 +730,12 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -721,10 +754,12 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1beta1.Security * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder builderForValue) { @@ -741,10 +776,12 @@ public Builder setSecurityMarks( * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -767,10 +804,12 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.Securi * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -787,10 +826,12 @@ public Builder clearSecurityMarks() { * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurityMarksBuilder() { @@ -801,10 +842,12 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { @@ -820,10 +863,12 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity * * *
-     * The security marks resource to update.
+     * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.SecurityMarks, @@ -856,6 +901,8 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -868,6 +915,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { @@ -1035,6 +1084,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -1047,6 +1098,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java index 43813deed..d76ffd53c 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java @@ -27,30 +27,40 @@ public interface UpdateSecurityMarksRequestOrBuilder * * *
-   * The security marks resource to update.
+   * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** * * *
-   * The security marks resource to update.
+   * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityMarks. */ com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks(); /** * * *
-   * The security marks resource to update.
+   * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); @@ -62,6 +72,8 @@ public interface UpdateSecurityMarksRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -72,6 +84,8 @@ public interface UpdateSecurityMarksRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** @@ -93,6 +107,8 @@ public interface UpdateSecurityMarksRequestOrBuilder * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** @@ -103,6 +119,8 @@ public interface UpdateSecurityMarksRequestOrBuilder * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java index c6e25c44e..ca58c9fe3 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java @@ -39,6 +39,12 @@ private UpdateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder bu private UpdateSourceRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSourceRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private UpdateSourceRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -134,10 +139,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The source resource to update.
+   * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. */ public boolean hasSource() { return source_ != null; @@ -146,10 +155,14 @@ public boolean hasSource() { * * *
-   * The source resource to update.
+   * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. */ public com.google.cloud.securitycenter.v1beta1.Source getSource() { return source_ == null @@ -160,10 +173,12 @@ public com.google.cloud.securitycenter.v1beta1.Source getSource() { * * *
-   * The source resource to update.
+   * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() { return getSource(); @@ -179,6 +194,8 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilde * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -191,6 +208,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -577,10 +596,14 @@ public Builder mergeFrom( * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; @@ -589,10 +612,14 @@ public boolean hasSource() { * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. */ public com.google.cloud.securitycenter.v1beta1.Source getSource() { if (sourceBuilder_ == null) { @@ -607,10 +634,12 @@ public com.google.cloud.securitycenter.v1beta1.Source getSource() { * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource(com.google.cloud.securitycenter.v1beta1.Source value) { if (sourceBuilder_ == null) { @@ -629,10 +658,12 @@ public Builder setSource(com.google.cloud.securitycenter.v1beta1.Source value) { * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource( com.google.cloud.securitycenter.v1beta1.Source.Builder builderForValue) { @@ -649,10 +680,12 @@ public Builder setSource( * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSource(com.google.cloud.securitycenter.v1beta1.Source value) { if (sourceBuilder_ == null) { @@ -675,10 +708,12 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1beta1.Source value) * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -695,10 +730,12 @@ public Builder clearSource() { * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.Source.Builder getSourceBuilder() { @@ -709,10 +746,12 @@ public com.google.cloud.securitycenter.v1beta1.Source.Builder getSourceBuilder() * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { @@ -727,10 +766,12 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilde * * *
-     * The source resource to update.
+     * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.Source, @@ -763,6 +804,8 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilde * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -775,6 +818,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java index f702a840e..896c3b276 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java @@ -27,30 +27,40 @@ public interface UpdateSourceRequestOrBuilder * * *
-   * The source resource to update.
+   * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. */ boolean hasSource(); /** * * *
-   * The source resource to update.
+   * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. */ com.google.cloud.securitycenter.v1beta1.Source getSource(); /** * * *
-   * The source resource to update.
+   * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder(); @@ -62,6 +72,8 @@ public interface UpdateSourceRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -72,6 +84,8 @@ public interface UpdateSourceRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/asset.proto b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/asset.proto index 3dd5b3581..85d0e0900 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/asset.proto +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/asset.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 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,10 +17,11 @@ syntax = "proto3"; package google.cloud.securitycenter.v1beta1; -import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; import "google/cloud/securitycenter/v1beta1/security_marks.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter"; option java_multiple_files = true; @@ -36,10 +37,10 @@ message Asset { // Cloud SCC managed properties. These properties are managed by Cloud SCC and // cannot be modified by the user. message SecurityCenterProperties { - // The full resource name of the GCP resource this asset + // Immutable. The full resource name of the GCP resource this asset // represents. This field is immutable after create time. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name - string resource_name = 1; + string resource_name = 1 [(google.api.field_behavior) = IMMUTABLE]; // The type of the GCP resource. Examples include: APPLICATION, // PROJECT, and ORGANIZATION. This is a case insensitive field defined by @@ -62,7 +63,7 @@ message Asset { // The relative resource name of this asset. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: - // "organizations/123/assets/456". + // "organizations/{organization_id}/assets/{asset_id}". string name = 1; // Cloud SCC managed properties. These properties are managed by diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/finding.proto b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/finding.proto index 21dfdd561..e582e6de3 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/finding.proto +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/finding.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 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,10 +17,12 @@ syntax = "proto3"; package google.cloud.securitycenter.v1beta1; -import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/securitycenter/v1beta1/security_marks.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter"; option java_multiple_files = true; @@ -33,6 +35,11 @@ option java_package = "com.google.cloud.securitycenter.v1beta1"; // policy testing, and enforcement. For example, an XSS vulnerability in an // App Engine application is a finding. message Finding { + option (google.api.resource) = { + type: "securitycenter.googleapis.com/Finding" + pattern: "organizations/{organization}/sources/{source}/findings/{finding}" + }; + // The state of the finding. enum State { // Unspecified state. @@ -49,19 +56,21 @@ message Finding { // The relative resource name of this finding. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: - // "organizations/123/sources/456/findings/789" + // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" string name = 1; - // The relative resource name of the source the finding belongs to. See: + // Immutable. The relative resource name of the source the finding belongs to. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // This field is immutable after creation time. // For example: - // "organizations/123/sources/456" - string parent = 2; + // "organizations/{organization_id}/sources/{source_id}" + string parent = 2 [(google.api.field_behavior) = IMMUTABLE]; - // The full resource name of the Google Cloud Platform (GCP) resource this - // finding is for. See: + // For findings on Google Cloud Platform (GCP) resources, the full resource + // name of the GCP resource this finding is for. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name + // When the finding is for a non-GCP resource, the resourceName can be a + // customer or partner defined string. // This field is immutable after creation time. string resource_name = 3; @@ -87,11 +96,11 @@ message Finding { // Output only. User specified security marks. These marks are entirely // managed by the user and come from the SecurityMarks resource that belongs // to the finding. - SecurityMarks security_marks = 8; + SecurityMarks security_marks = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // The time at which the event took place. For example, if the finding - // represents an open firewall it would capture the time the open firewall was - // detected. + // represents an open firewall it would capture the time the detector believes + // the firewall became open. The accuracy is determined by the detector. google.protobuf.Timestamp event_time = 9; // The time at which the finding was created in Cloud SCC. diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/organization_settings.proto b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/organization_settings.proto index ca9be1145..9f7f2b0ed 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/organization_settings.proto +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/organization_settings.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 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.securitycenter.v1beta1; +import "google/api/resource.proto"; import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter"; @@ -26,6 +27,11 @@ option java_package = "com.google.cloud.securitycenter.v1beta1"; // User specified settings that are attached to the Cloud Security Command // Center (Cloud SCC) organization. message OrganizationSettings { + option (google.api.resource) = { + type: "securitycenter.googleapis.com/OrganizationSettings" + pattern: "organizations/{organization}/organizationSettings" + }; + // The configuration used for Asset Discovery runs. message AssetDiscoveryConfig { // The mode of inclusion when running Asset Discovery. @@ -60,7 +66,7 @@ message OrganizationSettings { // The relative resource name of the settings. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: - // "organizations/123/organizationSettings". + // "organizations/{organization_id}/organizationSettings". string name = 1; // A flag that indicates if Asset Discovery should be enabled. If the flag is diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto new file mode 100644 index 000000000..53ba02ef0 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto @@ -0,0 +1,50 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.securitycenter.v1beta1; + +import "google/protobuf/duration.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter"; +option java_multiple_files = true; +option java_package = "com.google.cloud.securitycenter.v1beta1"; + +// Response of asset discovery run +message RunAssetDiscoveryResponse { + // The state of an asset discovery run. + enum State { + // Asset discovery run state was unspecified. + STATE_UNSPECIFIED = 0; + + // Asset discovery run completed successfully. + COMPLETED = 1; + + // Asset discovery run was cancelled with tasks still pending, as another + // run for the same organization was started with a higher priority. + SUPERSEDED = 2; + + // Asset discovery run was killed and terminated. + TERMINATED = 3; + } + + // The state of an asset discovery run. + State state = 1; + + // The duration between asset discovery run start and end + google.protobuf.Duration duration = 2; +} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/security_marks.proto b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/security_marks.proto index cfcb5f7dc..97baf2479 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/security_marks.proto +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/security_marks.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 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.securitycenter.v1beta1; +import "google/api/resource.proto"; import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter"; @@ -28,18 +29,26 @@ option java_package = "com.google.cloud.securitycenter.v1beta1"; // SCC organization -- they can be modified and viewed by all users who have // proper permissions on the organization. message SecurityMarks { + option (google.api.resource) = { + type: "securitycenter.googleapis.com/SecurityMarks" + pattern: "organizations/{organization}/assets/{asset}/securityMarks" + pattern: "organizations/{organization}/sources/{source}/findings/{finding}/securityMarks" + }; + // The relative resource name of the SecurityMarks. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Examples: - // "organizations/123/assets/456/securityMarks" - // "organizations/123/sources/456/findings/789/securityMarks". + // "organizations/{organization_id}/assets/{asset_id}/securityMarks" + // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". string name = 1; // Mutable user specified security marks belonging to the parent resource. // Constraints are as follows: - // - Keys and values are treated as case insensitive - // - Keys must be alphanumeric and between 1 - 256 characters (inclusive) - // - Values have leading and trailing whitespace trimmed, remaining + // + // * Keys and values are treated as case insensitive + // * Keys must be between 1 - 256 characters (inclusive) + // * Keys must be letters, numbers, underscores, or dashes + // * Values have leading and trailing whitespace trimmed, remaining // characters must be between 1 - 4096 characters (inclusive) map marks = 2; } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/securitycenter_service.proto b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/securitycenter_service.proto index dafce562d..ba2edf4ee 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/securitycenter_service.proto +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/securitycenter_service.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,9 @@ syntax = "proto3"; package google.cloud.securitycenter.v1beta1; import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/securitycenter/v1beta1/asset.proto"; import "google/cloud/securitycenter/v1beta1/finding.proto"; import "google/cloud/securitycenter/v1beta1/organization_settings.proto"; @@ -38,12 +41,16 @@ option java_package = "com.google.cloud.securitycenter.v1beta1"; // V1 Beta APIs for Security Center service. service SecurityCenter { + option (google.api.default_host) = "securitycenter.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + // Creates a source. rpc CreateSource(CreateSourceRequest) returns (Source) { option (google.api.http) = { post: "/v1beta1/{parent=organizations/*}/sources" body: "source" }; + option (google.api.method_signature) = "parent,source"; } // Creates a finding. The corresponding source must exist for finding creation @@ -53,23 +60,24 @@ service SecurityCenter { post: "/v1beta1/{parent=organizations/*/sources/*}/findings" body: "finding" }; + option (google.api.method_signature) = "parent,finding_id,finding"; } // Gets the access control policy on the specified Source. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) - returns (google.iam.v1.Policy) { + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1beta1/{resource=organizations/*/sources/*}:getIamPolicy" body: "*" }; + option (google.api.method_signature) = "resource"; } // Gets the settings for an organization. - rpc GetOrganizationSettings(GetOrganizationSettingsRequest) - returns (OrganizationSettings) { + rpc GetOrganizationSettings(GetOrganizationSettingsRequest) returns (OrganizationSettings) { option (google.api.http) = { get: "/v1beta1/{name=organizations/*/organizationSettings}" }; + option (google.api.method_signature) = "name"; } // Gets a source. @@ -77,6 +85,7 @@ service SecurityCenter { option (google.api.http) = { get: "/v1beta1/{name=organizations/*/sources/*}" }; + option (google.api.method_signature) = "name"; } // Filters an organization's assets and groups them by their specified @@ -92,12 +101,13 @@ service SecurityCenter { // specified properties. // // To group across all sources provide a `-` as the source id. - // Example: /v1beta1/organizations/123/sources/-/findings + // Example: /v1beta1/organizations/{organization_id}/sources/-/findings rpc GroupFindings(GroupFindingsRequest) returns (GroupFindingsResponse) { option (google.api.http) = { post: "/v1beta1/{parent=organizations/*/sources/*}/findings:group" body: "*" }; + option (google.api.method_signature) = "parent,group_by"; } // Lists an organization's assets. @@ -110,7 +120,7 @@ service SecurityCenter { // Lists an organization or source's findings. // // To list across all sources provide a `-` as the source id. - // Example: /v1beta1/organizations/123/sources/-/findings + // Example: /v1beta1/organizations/{organization_id}/sources/-/findings rpc ListFindings(ListFindingsRequest) returns (ListFindingsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=organizations/*/sources/*}/findings" @@ -122,6 +132,7 @@ service SecurityCenter { option (google.api.http) = { get: "/v1beta1/{parent=organizations/*}/sources" }; + option (google.api.method_signature) = "parent"; } // Runs asset discovery. The discovery is tracked with a long-running @@ -130,12 +141,16 @@ service SecurityCenter { // This API can only be called with limited frequency for an organization. If // it is called too frequently the caller will receive a TOO_MANY_REQUESTS // error. - rpc RunAssetDiscovery(RunAssetDiscoveryRequest) - returns (google.longrunning.Operation) { + rpc RunAssetDiscovery(RunAssetDiscoveryRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta1/{parent=organizations/*}/assets:runDiscovery" body: "*" }; + option (google.api.method_signature) = "parent"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.protobuf.Empty" + }; } // Updates the state of a finding. @@ -144,24 +159,25 @@ service SecurityCenter { post: "/v1beta1/{name=organizations/*/sources/*/findings/*}:setState" body: "*" }; + option (google.api.method_signature) = "name,state,start_time"; } // Sets the access control policy on the specified Source. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) - returns (google.iam.v1.Policy) { + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1beta1/{resource=organizations/*/sources/*}:setIamPolicy" body: "*" }; + option (google.api.method_signature) = "resource,policy"; } // Returns the permissions that a caller has on the specified source. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) - returns (google.iam.v1.TestIamPermissionsResponse) { + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { option (google.api.http) = { post: "/v1beta1/{resource=organizations/*/sources/*}:testIamPermissions" body: "*" }; + option (google.api.method_signature) = "resource,permissions"; } // Creates or updates a finding. The corresponding source must exist for a @@ -171,15 +187,16 @@ service SecurityCenter { patch: "/v1beta1/{finding.name=organizations/*/sources/*/findings/*}" body: "finding" }; + option (google.api.method_signature) = "finding"; } // Updates an organization's settings. - rpc UpdateOrganizationSettings(UpdateOrganizationSettingsRequest) - returns (OrganizationSettings) { + rpc UpdateOrganizationSettings(UpdateOrganizationSettingsRequest) returns (OrganizationSettings) { option (google.api.http) = { patch: "/v1beta1/{organization_settings.name=organizations/*/organizationSettings}" body: "organization_settings" }; + option (google.api.method_signature) = "organization_settings"; } // Updates a source. @@ -188,6 +205,7 @@ service SecurityCenter { patch: "/v1beta1/{source.name=organizations/*/sources/*}" body: "source" }; + option (google.api.method_signature) = "source"; } // Updates security marks. @@ -200,55 +218,81 @@ service SecurityCenter { body: "security_marks" } }; + option (google.api.method_signature) = "security_marks"; } } // Request message for creating a finding. message CreateFindingRequest { - // Resource name of the new finding's parent. Its format should be + // Required. Resource name of the new finding's parent. Its format should be // "organizations/[organization_id]/sources/[source_id]". - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/Source" + } + ]; - // Unique identifier provided by the client within the parent scope. + // Required. Unique identifier provided by the client within the parent scope. // It must be alphanumeric and less than or equal to 32 characters and // greater than 0 characters in length. - string finding_id = 2; + string finding_id = 2 [(google.api.field_behavior) = REQUIRED]; - // The Finding being created. The name and security_marks will be ignored as + // Required. The Finding being created. The name and security_marks will be ignored as // they are both output only fields on this resource. - Finding finding = 3; + Finding finding = 3 [(google.api.field_behavior) = REQUIRED]; } // Request message for creating a source. message CreateSourceRequest { - // Resource name of the new source's parent. Its format should be + // Required. Resource name of the new source's parent. Its format should be // "organizations/[organization_id]". - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Organization" + } + ]; - // The Source being created, only the display_name and description will be + // Required. The Source being created, only the display_name and description will be // used. All other fields will be ignored. - Source source = 2; + Source source = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for getting organization settings. message GetOrganizationSettingsRequest { - // Name of the organization to get organization settings for. Its format is + // Required. Name of the organization to get organization settings for. Its format is // "organizations/[organization_id]/organizationSettings". - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/OrganizationSettings" + } + ]; } // Request message for getting a source. message GetSourceRequest { - // Relative resource name of the source. Its format is + // Required. Relative resource name of the source. Its format is // "organizations/[organization_id]/source/[source_id]". - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/Source" + } + ]; } // Request message for grouping by assets. message GroupAssetsRequest { - // Name of the organization to groupBy. Its format is + // Required. Name of the organization to groupBy. Its format is // "organizations/[organization_id]". - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Organization" + } + ]; // Expression that defines the filter to apply across assets. // The expression is a list of zero or more restrictions combined via logical @@ -279,7 +323,7 @@ message GroupAssetsRequest { // For example, `resource_properties.size = 100` is a valid filter string. string filter = 2; - // Expression that defines what assets fields to use for grouping. The string + // Required. Expression that defines what assets fields to use for grouping. The string // value should follow SQL syntax: comma separated list of fields. For // example: // "security_center_properties.resource_project,security_center_properties.project". @@ -293,7 +337,7 @@ message GroupAssetsRequest { // The following fields are supported when compare_duration is set: // // * security_center_properties.resource_type - string group_by = 3; + string group_by = 3 [(google.api.field_behavior) = REQUIRED]; // When compare_duration is set, the Asset's "state" property is updated to // indicate whether the asset was added, removed, or remained present during @@ -351,11 +395,16 @@ message GroupAssetsResponse { // Request message for grouping by findings. message GroupFindingsRequest { - // Name of the source to groupBy. Its format is + // Required. Name of the source to groupBy. Its format is // "organizations/[organization_id]/sources/[source_id]". To groupBy across // all sources provide a source_id of `-`. For example: - // organizations/123/sources/- - string parent = 1; + // organizations/{organization_id}/sources/- + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/Source" + } + ]; // Expression that defines the filter to apply across findings. // The expression is a list of one or more restrictions combined via logical @@ -384,7 +433,7 @@ message GroupFindingsRequest { // For example, `source_properties.size = 100` is a valid filter string. string filter = 2; - // Expression that defines what assets fields to use for grouping (including + // Required. Expression that defines what assets fields to use for grouping (including // `state`). The string value should follow SQL syntax: comma separated list // of fields. For example: // "parent,resource_name". @@ -395,7 +444,7 @@ message GroupFindingsRequest { // * category // * state // * parent - string group_by = 3; + string group_by = 3 [(google.api.field_behavior) = REQUIRED]; // Time used as a reference point when filtering findings. The filter is // limited to findings existing at the supplied time and their values are @@ -439,9 +488,14 @@ message GroupResult { // Request message for listing sources. message ListSourcesRequest { - // Resource name of the parent of sources to list. Its format should be + // Required. Resource name of the parent of sources to list. Its format should be // "organizations/[organization_id]". - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Organization" + } + ]; // The value returned by the last `ListSourcesResponse`; indicates // that this is a continuation of a prior `ListSources` call, and @@ -465,9 +519,14 @@ message ListSourcesResponse { // Request message for listing assets. message ListAssetsRequest { - // Name of the organization assets should belong to. Its format is + // Required. Name of the organization assets should belong to. Its format is // "organizations/[organization_id]". - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Organization" + } + ]; // Expression that defines the filter to apply across assets. // The expression is a list of zero or more restrictions combined via logical @@ -539,12 +598,10 @@ message ListAssetsRequest { // "UNUSED", which indicates that the asset is present at read_time. google.protobuf.Duration compare_duration = 5; - // Optional. - // - // A field mask to specify the ListAssetsResult fields to be listed in the + // Optional. A field mask to specify the ListAssetsResult fields to be listed in the // response. // An empty field mask will list all fields. - google.protobuf.FieldMask field_mask = 7; + google.protobuf.FieldMask field_mask = 7 [(google.api.field_behavior) = OPTIONAL]; // The value returned by the last `ListAssetsResponse`; indicates // that this is a continuation of a prior `ListAssets` call, and @@ -606,11 +663,16 @@ message ListAssetsResponse { // Request message for listing findings. message ListFindingsRequest { - // Name of the source the findings belong to. Its format is + // Required. Name of the source the findings belong to. Its format is // "organizations/[organization_id]/sources/[source_id]". To list across all // sources provide a source_id of `-`. For example: - // organizations/123/sources/- - string parent = 1; + // organizations/{organization_id}/sources/- + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/Source" + } + ]; // Expression that defines the filter to apply across findings. // The expression is a list of one or more restrictions combined via logical @@ -655,11 +717,9 @@ message ListFindingsRequest { // API's version of NOW. google.protobuf.Timestamp read_time = 4; - // Optional. - // - // A field mask to specify the Finding fields to be listed in the response. + // Optional. A field mask to specify the Finding fields to be listed in the response. // An empty field mask will list all fields. - google.protobuf.FieldMask field_mask = 5; + google.protobuf.FieldMask field_mask = 5 [(google.api.field_behavior) = OPTIONAL]; // The value returned by the last `ListFindingsResponse`; indicates // that this is a continuation of a prior `ListFindings` call, and @@ -689,35 +749,45 @@ message ListFindingsResponse { // Request message for updating a finding's state. message SetFindingStateRequest { - // The relative resource name of the finding. See: + // Required. The relative resource name of the finding. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: - // "organizations/123/sources/456/finding/789". - string name = 1; + // "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/Finding" + } + ]; - // The desired State of the finding. - Finding.State state = 2; + // Required. The desired State of the finding. + Finding.State state = 2 [(google.api.field_behavior) = REQUIRED]; - // The time at which the updated state takes effect. - google.protobuf.Timestamp start_time = 3; + // Required. The time at which the updated state takes effect. + google.protobuf.Timestamp start_time = 3 [(google.api.field_behavior) = REQUIRED]; } // Request message for running asset discovery for an organization. message RunAssetDiscoveryRequest { - // Name of the organization to run asset discovery for. Its format is + // Required. Name of the organization to run asset discovery for. Its format is // "organizations/[organization_id]". - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Organization" + } + ]; } // Request message for updating or creating a finding. message UpdateFindingRequest { - // The finding resource to update or create if it does not already exist. + // Required. The finding resource to update or create if it does not already exist. // parent, security_marks, and update_time will be ignored. // // In the case of creation, the finding id portion of the name must // alphanumeric and less than or equal to 32 characters and greater than 0 // characters in length. - Finding finding = 1; + Finding finding = 1 [(google.api.field_behavior) = REQUIRED]; // The FieldMask to use when updating the finding resource. This field should // not be specified when creating a finding. @@ -726,8 +796,8 @@ message UpdateFindingRequest { // Request message for updating an organization's settings. message UpdateOrganizationSettingsRequest { - // The organization settings resource to update. - OrganizationSettings organization_settings = 1; + // Required. The organization settings resource to update. + OrganizationSettings organization_settings = 1 [(google.api.field_behavior) = REQUIRED]; // The FieldMask to use when updating the settings resource. google.protobuf.FieldMask update_mask = 2; @@ -735,8 +805,8 @@ message UpdateOrganizationSettingsRequest { // Request message for updating a source. message UpdateSourceRequest { - // The source resource to update. - Source source = 1; + // Required. The source resource to update. + Source source = 1 [(google.api.field_behavior) = REQUIRED]; // The FieldMask to use when updating the source resource. google.protobuf.FieldMask update_mask = 2; @@ -744,8 +814,8 @@ message UpdateSourceRequest { // Request message for updating a SecurityMarks resource. message UpdateSecurityMarksRequest { - // The security marks resource to update. - SecurityMarks security_marks = 1; + // Required. The security marks resource to update. + SecurityMarks security_marks = 1 [(google.api.field_behavior) = REQUIRED]; // The FieldMask to use when updating the security marks resource. google.protobuf.FieldMask update_mask = 2; diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto index cc1fae6ea..98025bca2 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 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.securitycenter.v1beta1; +import "google/api/resource.proto"; import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter"; @@ -27,19 +28,22 @@ option java_package = "com.google.cloud.securitycenter.v1beta1"; // is an entity or a mechanism that can produce a finding. A source is like a // container of findings that come from the same scanner, logger, monitor, etc. message Source { + option (google.api.resource) = { + type: "securitycenter.googleapis.com/Source" + pattern: "organizations/{organization}/sources/{source}" + }; + // The relative resource name of this source. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: - // "organizations/123/sources/456" + // "organizations/{organization_id}/sources/{source_id}" string name = 1; // The source's display name. // A source's display name must be unique amongst its siblings, for example, // two sources with the same parent can't share the same display name. - // The display name must start and end with a letter or digit, may contain - // letters, digits, spaces, hyphens, and underscores, and can be no longer - // than 32 characters. This is captured by the regular expression: - // [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,30}[\p{L}\p{N}])?. + // The display name must have a length between 1 and 64 characters + // (inclusive). string display_name = 2; // The description of the source (max of 1024 characters). diff --git a/renovate.json b/renovate.json index 998104700..f3a70c970 100644 --- a/renovate.json +++ b/renovate.json @@ -1,27 +1,64 @@ { "extends": [ - "config:base" + ":separateMajorReleases", + ":combinePatchMinorReleases", + ":ignoreUnstable", + ":prImmediately", + ":updateNotScheduled", + ":automergeDisabled", + ":ignoreModulesAndTests", + ":maintainLockFilesDisabled", + ":autodetectPinVersions" ], - "ignoreDeps": [], "packageRules": [ { - "managers": ["maven"], - "packageNames": ["com.google.guava:guava*"], + "packagePatterns": [ + "^com.google.guava:" + ], "versionScheme": "docker" }, { - "packagePatterns": ["^io.grpc:grpc-"], - "groupName": "gRPC packages" + "packagePatterns": [ + "^com.google.api:gax", + "^com.google.auth:", + "^com.google.cloud:google-cloud-core", + "^io.grpc:" + ], + "groupName": "core dependencies" }, { - "packagePatterns": ["^com.google.protobuf:protobuf-"], - "groupName": "Protobuf packages" + "packagePatterns": [ + "^com.google.http-client:", + "^com.google.oauth-client:", + "^com.google.api-client:" + ], + "groupName": "core transport dependencies" }, { - "packagePatterns": ["^io.opencensus:opencensus-"], - "groupName": "OpenCensus packages" + "packagePatterns": [ + "*" + ], + "semanticCommitType": "deps", + "semanticCommitScope": null + }, + { + "packagePatterns": [ + "^org.apache.maven", + "^org.jacoco:", + "^org.codehaus.mojo:", + "^org.sonatype.plugins:", + "^com.coveo:", + "^com.google.cloud:google-cloud-shared-config" + ], + "semanticCommitType": "build", + "semanticCommitScope": "deps" + }, + { + "packagePatterns": [ + "^com.google.cloud:google-cloud-" + ], + "ignoreUnstable": false } ], - "semanticCommits": true, - "semanticCommitType": "deps" + "semanticCommits": true } diff --git a/synth.metadata b/synth.metadata index 5d67fbd27..dcf64a358 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-10-30T16:00:06.095312Z", + "updateTime": "2020-01-07T09:00:33.649816Z", "sources": [ { "generator": { "name": "artman", - "version": "0.41.0", - "dockerImage": "googleapis/artman@sha256:75b38a3b073a7b243545f2332463096624c802bb1e56b8cb6f22ba1ecd325fa9" + "version": "0.43.0", + "dockerImage": "googleapis/artman@sha256:264654a37596a44b0668b8ce6ac41082d713f6ee150b3fc6425fa78cc64e4f20" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "7c4cf35d5fe3b8ad664bd219edd6d9f28a788b64", - "internalRef": "277334937" + "sha": "cb79155f596e0396dd900da93872be7066f6340d", + "internalRef": "288441307" } }, { @@ -45,5 +45,871 @@ "config": "google/cloud/securitycenter/artman_securitycenter_v1.yaml" } } + ], + "newFiles": [ + { + "path": ".repo-metadata.json" + }, + { + "path": "renovate.json" + }, + { + "path": "license-checks.xml" + }, + { + "path": "synth.py" + }, + { + "path": "CHANGELOG.md" + }, + { + "path": "codecov.yaml" + }, + { + "path": "LICENSE" + }, + { + "path": ".gitignore" + }, + { + "path": "pom.xml" + }, + { + "path": "CODE_OF_CONDUCT.md" + }, + { + "path": "synth.metadata" + }, + { + "path": "versions.txt" + }, + { + "path": "CONTRIBUTING.md" + }, + { + "path": "java.header" + }, + { + "path": "proto-google-cloud-securitycenter-v1/pom.xml" + }, + { + "path": "proto-google-cloud-securitycenter-v1/clirr-ignored-differences.xml" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UntypedSecuritymarksName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSourcesName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingSecurityMarksName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritymarksNames.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetSecurityMarksName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java" + }, + { + "path": "google-cloud-securitycenter-bom/pom.xml" + }, + { + "path": "google-cloud-securitycenter/pom.xml" + }, + { + "path": "google-cloud-securitycenter/README.md" + }, + { + "path": "google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenter.java" + }, + { + "path": "google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java" + }, + { + "path": "google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java" + }, + { + "path": "google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenter.java" + }, + { + "path": "google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientTest.java" + }, + { + "path": "google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenterImpl.java" + }, + { + "path": "google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java" + }, + { + "path": "google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java" + }, + { + "path": "google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java" + }, + { + "path": "google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java" + }, + { + "path": "google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java" + }, + { + "path": "google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java" + }, + { + "path": "google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java" + }, + { + "path": "google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/package-info.java" + }, + { + "path": "google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java" + }, + { + "path": "google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java" + }, + { + "path": "google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterStub.java" + }, + { + "path": "google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java" + }, + { + "path": "google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterCallableFactory.java" + }, + { + "path": "google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java" + }, + { + "path": ".kokoro/build.bat" + }, + { + "path": ".kokoro/build.sh" + }, + { + "path": ".kokoro/dependencies.sh" + }, + { + "path": ".kokoro/common.cfg" + }, + { + "path": ".kokoro/trampoline.sh" + }, + { + "path": ".kokoro/coerce_logs.sh" + }, + { + "path": ".kokoro/linkage-monitor.sh" + }, + { + "path": ".kokoro/continuous/dependencies.cfg" + }, + { + "path": ".kokoro/continuous/samples.cfg" + }, + { + "path": ".kokoro/continuous/java7.cfg" + }, + { + "path": ".kokoro/continuous/java8-osx.cfg" + }, + { + "path": ".kokoro/continuous/java8-win.cfg" + }, + { + "path": ".kokoro/continuous/propose_release.sh" + }, + { + "path": ".kokoro/continuous/lint.cfg" + }, + { + "path": ".kokoro/continuous/java11.cfg" + }, + { + "path": ".kokoro/continuous/common.cfg" + }, + { + "path": ".kokoro/continuous/propose_release.cfg" + }, + { + "path": ".kokoro/continuous/java8.cfg" + }, + { + "path": ".kokoro/continuous/integration.cfg" + }, + { + "path": ".kokoro/release/drop.sh" + }, + { + "path": ".kokoro/release/stage.cfg" + }, + { + "path": ".kokoro/release/promote.cfg" + }, + { + "path": ".kokoro/release/publish_javadoc.cfg" + }, + { + "path": ".kokoro/release/bump_snapshot.cfg" + }, + { + "path": ".kokoro/release/promote.sh" + }, + { + "path": ".kokoro/release/stage.sh" + }, + { + "path": ".kokoro/release/snapshot.sh" + }, + { + "path": ".kokoro/release/snapshot.cfg" + }, + { + "path": ".kokoro/release/common.cfg" + }, + { + "path": ".kokoro/release/bump_snapshot.sh" + }, + { + "path": ".kokoro/release/common.sh" + }, + { + "path": ".kokoro/release/drop.cfg" + }, + { + "path": ".kokoro/release/publish_javadoc.sh" + }, + { + "path": ".kokoro/presubmit/dependencies.cfg" + }, + { + "path": ".kokoro/presubmit/samples.cfg" + }, + { + "path": ".kokoro/presubmit/java7.cfg" + }, + { + "path": ".kokoro/presubmit/java8-osx.cfg" + }, + { + "path": ".kokoro/presubmit/linkage-monitor.cfg" + }, + { + "path": ".kokoro/presubmit/java8-win.cfg" + }, + { + "path": ".kokoro/presubmit/lint.cfg" + }, + { + "path": ".kokoro/presubmit/java11.cfg" + }, + { + "path": ".kokoro/presubmit/common.cfg" + }, + { + "path": ".kokoro/presubmit/clirr.cfg" + }, + { + "path": ".kokoro/presubmit/java8.cfg" + }, + { + "path": ".kokoro/presubmit/integration.cfg" + }, + { + "path": ".kokoro/nightly/dependencies.cfg" + }, + { + "path": ".kokoro/nightly/samples.cfg" + }, + { + "path": ".kokoro/nightly/java7.cfg" + }, + { + "path": ".kokoro/nightly/java8-osx.cfg" + }, + { + "path": ".kokoro/nightly/java8-win.cfg" + }, + { + "path": ".kokoro/nightly/lint.cfg" + }, + { + "path": ".kokoro/nightly/java11.cfg" + }, + { + "path": ".kokoro/nightly/common.cfg" + }, + { + "path": ".kokoro/nightly/java8.cfg" + }, + { + "path": ".kokoro/nightly/integration.cfg" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/pom.xml" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/asset.proto" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/finding.proto" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/securitycenter_service.proto" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/organization_settings.proto" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/security_marks.proto" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UntypedSecuritymarksName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingSecurityMarksName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOuterClass.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritymarksName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritymarksNames.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetSecurityMarksName.java" + }, + { + "path": "proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java" + }, + { + "path": ".github/release-please.yml" + }, + { + "path": ".github/PULL_REQUEST_TEMPLATE.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/bug_report.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/support_request.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/feature_request.md" + }, + { + "path": "grpc-google-cloud-securitycenter-v1beta1/pom.xml" + }, + { + "path": "grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java" + }, + { + "path": "__pycache__/synth.cpython-36.pyc" + }, + { + "path": ".git/index" + }, + { + "path": ".git/packed-refs" + }, + { + "path": ".git/HEAD" + }, + { + "path": ".git/description" + }, + { + "path": ".git/config" + }, + { + "path": ".git/shallow" + }, + { + "path": ".git/objects/pack/pack-5c07ee95fe4f8382205c5b73517accc91d16ced9.pack" + }, + { + "path": ".git/objects/pack/pack-5c07ee95fe4f8382205c5b73517accc91d16ced9.idx" + }, + { + "path": ".git/refs/remotes/origin/HEAD" + }, + { + "path": ".git/refs/heads/autosynth" + }, + { + "path": ".git/refs/heads/master" + }, + { + "path": ".git/hooks/pre-applypatch.sample" + }, + { + "path": ".git/hooks/pre-commit.sample" + }, + { + "path": ".git/hooks/fsmonitor-watchman.sample" + }, + { + "path": ".git/hooks/pre-rebase.sample" + }, + { + "path": ".git/hooks/update.sample" + }, + { + "path": ".git/hooks/pre-push.sample" + }, + { + "path": ".git/hooks/applypatch-msg.sample" + }, + { + "path": ".git/hooks/prepare-commit-msg.sample" + }, + { + "path": ".git/hooks/commit-msg.sample" + }, + { + "path": ".git/hooks/post-update.sample" + }, + { + "path": ".git/hooks/pre-receive.sample" + }, + { + "path": ".git/info/exclude" + }, + { + "path": ".git/logs/HEAD" + }, + { + "path": ".git/logs/refs/remotes/origin/HEAD" + }, + { + "path": ".git/logs/refs/heads/autosynth" + }, + { + "path": ".git/logs/refs/heads/master" + }, + { + "path": "grpc-google-cloud-securitycenter-v1/pom.xml" + }, + { + "path": "grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java" + } ] } \ No newline at end of file diff --git a/versions.txt b/versions.txt index 3894d97b2..43111e0af 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-securitycenter-v1:0.82.0:0.82.0 -proto-google-cloud-securitycenter-v1beta1:0.82.0:0.82.0 -grpc-google-cloud-securitycenter-v1:0.82.0:0.82.0 -grpc-google-cloud-securitycenter-v1beta1:0.82.0:0.82.0 -google-cloud-securitycenter:0.117.0:0.117.0 \ No newline at end of file +proto-google-cloud-securitycenter-v1:0.83.0:0.83.0 +proto-google-cloud-securitycenter-v1beta1:0.83.0:0.83.0 +grpc-google-cloud-securitycenter-v1:0.83.0:0.83.0 +grpc-google-cloud-securitycenter-v1beta1:0.83.0:0.83.0 +google-cloud-securitycenter:0.118.0:0.118.0 \ No newline at end of file